Skip to content
Merged
Prev Previous commit
Next Next commit
Remove legacy timers option (real is the default)
  • Loading branch information
jsnajdr committed Mar 8, 2023
commit 7be547ad4c6052d754d22d3afc30c72b1eaec42e
1 change: 0 additions & 1 deletion packages/jest-preset-default/jest-preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ module.exports = {
'**/?(*.)test.[jt]s?(x)',
],
testPathIgnorePatterns: [ '/node_modules/', '<rootDir>/vendor/' ],
timers: 'real',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch 👍 Seems like we missed that when we defaulted to real timers.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also update the README to reflect it:

Screenshot 2023-03-08 at 12 58 44

transform: {
'\\.[jt]sx?$': require.resolve( 'babel-jest' ),
},
Expand Down
1 change: 0 additions & 1 deletion packages/react-native-editor/jest_ui.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ module.exports = {
transform: {
'^.+\\.(js|ts|tsx)$': 'babel-jest',
},
timers: 'real',
setupFilesAfterEnv: [ './jest_ui_setup_after_env.js' ],
testEnvironment: './jest_ui_test_environment.js',
testMatch: [ '**/__device-tests__/**/*.test.[jt]s?(x)' ],
Expand Down