Skip to content

Commit 42339a5

Browse files
committed
remove teardown
1 parent e0e4751 commit 42339a5

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

.github/workflows/integration-tests-basic.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
matrix:
1212
os: [macos-13, windows-2022]
1313
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
14-
node-version: [22]
14+
node-version: [20]
1515
timeout-minutes: 8
1616
steps:
1717
- uses: actions/checkout@v4

.github/workflows/integration-tests-extended.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
matrix:
1212
os: [macos-13, windows-2022]
1313
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
14-
node-version: [22]
14+
node-version: [20]
1515
timeout-minutes: 11
1616
steps:
1717
- uses: actions/checkout@v4

test/puppeteer-environment.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import NodeEnvironment from 'jest-environment-node';
1010

1111
const DIR = path.join(os.tmpdir(), 'jest_puppeteer_global_setup');
1212

13-
export default class PuppeteerEnvironment extends NodeEnvironment.default {
13+
export default class PuppeteerEnvironment extends NodeEnvironment.TestEnvironment {
1414
async setup() {
1515
await super.setup();
1616
// get the wsEndpoint
@@ -24,12 +24,4 @@ export default class PuppeteerEnvironment extends NodeEnvironment.default {
2424
browserWSEndpoint: wsEndpoint,
2525
});
2626
}
27-
28-
async teardown() {
29-
await super.teardown();
30-
}
31-
32-
getVmContext() {
33-
return super.getVmContext();
34-
}
3527
}

0 commit comments

Comments
 (0)