Skip to content

Commit

Permalink
chore(deps): update jest monorepo to v28 (major) (#661)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: TESTELIN Geoffrey <[email protected]>
  • Loading branch information
renovate[bot] and C0ZEN authored Aug 7, 2022
1 parent 5816568 commit ee40404
Show file tree
Hide file tree
Showing 11 changed files with 1,135 additions and 2,202 deletions.
2 changes: 1 addition & 1 deletion .idea/jsLibraryMappings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/libraries/jest_mock.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ const createProject = (type) => {
// Make calling deprecated APIs throw helpful error messages
errorOnDeprecated: true,

// Setting this value (enableGlobally) to "true" allows the use of fake timers for functions such as "setTimeout"
fakeTimers: {
enableGlobally: true,
},

// Force coverage collection from ignored files using an array of glob patterns
// forceCoverageMatch: [],

Expand Down Expand Up @@ -185,14 +190,8 @@ const createProject = (type) => {
// This option allows use of a custom test runner
// testRunner: "jasmine2",

// This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
// testURL: "http://localhost",

testTimeout: 5000,

// Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"
timers: `fake`,

// A map from regular expressions to paths to transformers
transform: {
// eslint-disable-next-line @typescript-eslint/naming-convention
Expand Down
Loading

0 comments on commit ee40404

Please sign in to comment.