Skip to content

Commit 592c24f

Browse files
committed
testing framework adjustment
1 parent d928b50 commit 592c24f

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

__tests__/componentReducer.test.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ const app = new Application({
2121
args: [appArg],
2222
chromeDriverArgs: ['--no-proxy-server'],
2323
env: {
24-
'NO_PROXY': '127.0.0.1,localhost'
25-
}
24+
'NO_PROXY': '127.0.0.1,localhost',
25+
'NODE_ENV': 'test'
26+
},
27+
waitTimeout: 10e3
2628
})
2729

2830
console.log(app);
@@ -37,10 +39,9 @@ console.log(app);
3739

3840
describe('Testing componentReducer functionality', () => {
3941
let state = initialState;
40-
4142

42-
beforeAll(async () => {
43-
return await app.start();
43+
beforeAll(() => {
44+
return app.start();
4445
})
4546

4647
afterAll(() => {

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,10 @@
8585
"js"
8686
],
8787
"transform": {
88-
"\\.(ts|tsx)$": "<rootDir>/node_modules/ts-jest"
88+
"\\.(ts|tsx)$": "<rootDir>/node_modules/ts-jest",
89+
"^.+\\.js?$": "babel-jest"
8990
},
91+
"transformIgnorePatterns": ["<rootDir>/node_modules"],
9092
"testRegex": "/__tests__/.*\\.(ts|tsx|js)$",
9193
"globals": {
9294
"ts-jest": {

0 commit comments

Comments
 (0)