Skip to content

Commit 2d77dab

Browse files
authored
feat: bump to lighthouse 10 and update code to accommodate (#23)
1 parent 8acff0d commit 2d77dab

16 files changed

+314
-264
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"parser": "@typescript-eslint/parser",
88
"parserOptions": {
9-
"project": ["tsconfig.json", "tsconfig.test.json"],
9+
"project": ["./tsconfig.json", "./tsconfig.test.json"],
1010
"sourceType": "module"
1111
},
1212
"plugins": [

jest.config.js

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,18 @@
11
module.exports = {
2-
'globals': {
3-
'ts-jest': {
4-
isolatedModules: true,
5-
tsconfig: 'tsconfig.test.json',
6-
},
7-
},
8-
moduleFileExtensions: [
9-
'ts',
10-
'tsx',
11-
'js',
12-
'jsx',
13-
'json',
14-
'node',
15-
],
16-
modulePathIgnorePatterns: [
17-
'<rootDir>/dist/'
18-
],
2+
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
3+
modulePathIgnorePatterns: ['<rootDir>/dist/'],
194
rootDir: 'src',
205
testEnvironment: 'node',
216
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(ts|js)x?$',
227
transform: {
23-
'\\.[jt]sx?$': 'ts-jest',
8+
'\\.[jt]sx?$': [
9+
'ts-jest',
10+
{
11+
isolatedModules: true,
12+
tsconfig: 'tsconfig.test.json',
13+
useESM: true,
14+
},
15+
],
2416
},
2517

2618
// transform all modules because it would be impossible to keep up with

0 commit comments

Comments
 (0)