mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 13:51:27 +08:00
chore: organize test files
This commit is contained in:

committed by
Nathan Walker

parent
5181769328
commit
1cd6df370b
@ -1,15 +1,16 @@
|
||||
module.exports = {
|
||||
preset: 'ts-jest',
|
||||
testEnvironment: 'node',
|
||||
preset: 'ts-jest',
|
||||
testEnvironment: 'node',
|
||||
moduleNameMapper: {
|
||||
'^@nativescript/webpack$': '<rootDir>/src'
|
||||
'^@nativescript/webpack$': '<rootDir>/src'
|
||||
},
|
||||
setupFiles: [
|
||||
'<rootDir>/jest.setup.ts'
|
||||
'<rootDir>/scripts/jest.setup.ts'
|
||||
],
|
||||
setupFilesAfterEnv: [
|
||||
'<rootDir>/scripts/jest.mockWarn.ts'
|
||||
],
|
||||
globals: {
|
||||
'ts-jest': {
|
||||
tsconfig: 'tsconfig.jest.json'
|
||||
}
|
||||
__TEST__: true,
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user