chore: organize test files

This commit is contained in:
Igor Randjelovic
2020-12-01 19:25:29 +01:00
committed by Nathan Walker
parent 5181769328
commit 1cd6df370b
22 changed files with 339 additions and 140 deletions

View File

@ -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,
}
};