You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
375 B
11 lines
375 B
const reactNativePreset = require('react-native/jest-preset');
|
|
|
|
module.exports = {
|
|
...reactNativePreset,
|
|
// this is needed to make modern fake timers work
|
|
// because the react-native preset overrides global.Promise
|
|
setupFiles: [require.resolve('./save-promise.js')]
|
|
.concat(reactNativePreset.setupFiles)
|
|
.concat([require.resolve('./restore-promise.js')]),
|
|
};
|