mirror of
https://github.com/expo/react-native-community-cli.git
synced 2026-11-14 19:11:48 -10:00
* chore: make `cleanup` async Using `rimraf.sync` can cause `ENOTEMPTY` and `EBUSY` errors on Windows. This can make the Windows CI to fail randomly. Changing to the async method defaults to autoretry 3 times and thus avoiding this issues. * chore: jest config * chore: e2e tests use sync cleanup * chore: pr feedback * chore: revert timeout * Update __e2e__/default.test.ts * Update __e2e__/default.test.ts Co-authored-by: Michał Pierzchała <[email protected]>
28 lines
633 B
JavaScript
28 lines
633 B
JavaScript
const common = {
|
|
testEnvironment: 'node',
|
|
snapshotSerializers: [require.resolve('jest-snapshot-serializer-raw')],
|
|
};
|
|
|
|
module.exports = {
|
|
projects: [
|
|
{
|
|
...common,
|
|
displayName: 'e2e',
|
|
setupFiles: ['<rootDir>/jest/setupE2eTests.js'],
|
|
testMatch: ['<rootDir>/__e2e__/*{.,-}test.[jt]s'],
|
|
},
|
|
{
|
|
...common,
|
|
displayName: 'unit',
|
|
setupFiles: ['<rootDir>/jest/setupUnitTests.js'],
|
|
testMatch: ['<rootDir>/**/__tests__/*{.,-}test.[jt]s'],
|
|
},
|
|
],
|
|
collectCoverageFrom: [
|
|
'**/packages/*/**/*.ts',
|
|
'!**/__mocks__/**',
|
|
'!**/__tests__/**',
|
|
'!**/build/**',
|
|
],
|
|
};
|