[change] Remove jest preset

Also add node-based unit tests for SSR APIs.
This commit is contained in:
Nicolas Gallagher
2022-03-02 10:50:04 -08:00
parent b27c9820db
commit 9b0c1193a2
7 changed files with 33 additions and 89 deletions
+19
View File
@@ -0,0 +1,19 @@
'use strict';
module.exports = {
coveragePathIgnorePatterns: ['/node_modules/', '<rootDir>/packages/react-native-web/src/vendor/'],
modulePathIgnorePatterns: [
'<rootDir>/packages/benchmarks/',
'<rootDir>/packages/docs/',
'<rootDir>/packages/examples/',
'<rootDir>/packages/react-native-web/dist/'
],
rootDir: process.cwd(),
roots: ['<rootDir>/packages'],
snapshotFormat: {
printBasicPrototype: false
},
testEnvironment: 'node',
testMatch: ['**/__tests__/**/?(*-)+(spec|test).node.[jt]s?(x)'],
timers: 'fake'
};