Skip to content

Commit 3655f05

Browse files
committed
add a workaround for jest clearing up the wrong resource
1 parent 96a5fa5 commit 3655f05

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@
9696
"test": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest",
9797
"test:integration": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.test.js\"",
9898
"test:unit": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.unittest.js\"",
99-
"travis:integration": "yarn cover:init && yarn cover:integration --ci --runInBand && yarn cover:report-min",
99+
"travis:integration": "yarn cover:init && yarn cover:integration --ci && yarn cover:report-min",
100100
"travis:unit": "yarn cover:init && yarn cover:unit --ci",
101101
"travis:lint": "yarn lint",
102102
"travis:benchmark": "yarn benchmark --ci",
103-
"appveyor:integration": "yarn cover:init && yarn cover:integration --ci --runInBand && yarn cover:report-min",
103+
"appveyor:integration": "yarn cover:init && yarn cover:integration --ci && yarn cover:report-min",
104104
"appveyor:unit": "yarn cover:init && yarn cover:unit --ci && yarn cover:report-min",
105105
"appveyor:benchmark": "yarn benchmark --ci",
106106
"circleci:test": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --ci",

test/ConfigTestCases.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,9 @@ describe("ConfigTestCases", () => {
277277
: fit(title, () => {}).pend("Skipped")
278278
);
279279
});
280+
// workaround for jest running clearSpies on the wrong suite (invoked by clearResourcesForRunnable)
281+
asyncSuite.disabled = true;
282+
280283
jasmine
281284
.getEnv()
282285
.execute([asyncSuite.id], asyncSuite)

test/HotTestCases.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ describe("HotTestCases", () => {
195195
: fit(title, () => {}).pend("Skipped")
196196
);
197197
});
198+
// workaround for jest running clearSpies on the wrong suite (invoked by clearResourcesForRunnable)
199+
asyncSuite.disabled = true;
198200

199201
jasmine
200202
.getEnv()

test/TestCases.template.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ const describeCases = config => {
251251
: fit(title, () => {}).pend("Skipped")
252252
);
253253
});
254+
// workaround for jest running clearSpies on the wrong suite (invoked by clearResourcesForRunnable)
255+
asyncSuite.disabled = true;
254256

255257
jasmine
256258
.getEnv()

test/WatchTestCases.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,8 @@ describe("WatchTestCases", () => {
315315
: fit(title, () => {}).pend("Skipped")
316316
);
317317
});
318+
// workaround for jest running clearSpies on the wrong suite (invoked by clearResourcesForRunnable)
319+
asyncSuite.disabled = true;
318320

319321
jasmine
320322
.getEnv()

0 commit comments

Comments
 (0)