Skip to content

Commit bc960c6

Browse files
author
Peter Bengtsson
authored
Remove old browser (headless) tests (#37433)
1 parent fcf1657 commit bc960c6

File tree

8 files changed

+87
-1940
lines changed

8 files changed

+87
-1940
lines changed

.github/workflows/browser-test.yml

Lines changed: 0 additions & 79 deletions
This file was deleted.

jest.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// https://jestjs.io/docs/en/configuration.html
22

3-
const isBrowser = process.env.BROWSER
43
const isActions = Boolean(process.env.GITHUB_ACTIONS)
54

65
const reporters = ['default']
@@ -18,22 +17,20 @@ export default {
1817
statements: -5,
1918
},
2019
},
21-
preset: isBrowser ? 'jest-puppeteer' : undefined,
2220
moduleNameMapper: {
2321
// fix for "Unexpected token 'export'" error when running jest
2422
'@primer/behaviors': '<rootDir>/node_modules/@primer/behaviors/dist/cjs/index.js',
2523
},
2624
reporters,
2725
modulePathIgnorePatterns: ['assets/'],
2826
setupFilesAfterEnv: ['./jest.setup.js', 'jest-expect-message'],
29-
...(isBrowser ? {} : { testEnvironment: 'node' }),
27+
testEnvironment: 'node',
3028
testPathIgnorePatterns: [
3129
'node_modules/',
3230
'vendor/',
3331
'tests/fixtures/',
3432
'tests/helpers/',
3533
'tests/javascripts/',
36-
...(isBrowser ? [] : ['tests/browser/browser.js']),
3734
],
3835
testMatch: ['**/tests/**/*.js'],
3936
testLocationInResults: isActions,

0 commit comments

Comments
 (0)