Skip to content

Commit

Permalink
fix(node10): change build target to correctly support node10 (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveBunlon authored Mar 13, 2023
1 parent 6ae53e4 commit 5fd2a6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ module.exports = {
// Prevents unwanted sketchy `../../` prefix in lcov report.
// This lead to error when sharing coverage with CodeClimate.
projectRoot: appRoot.path,
}],
},
],
],

collectCoverageFrom: [
'**/*.{js,ts,tsx}',
],
collectCoverageFrom: ['**/*.{js,ts,tsx}'],

coveragePathIgnorePatterns: [
'/coverage',
Expand All @@ -27,7 +26,7 @@ module.exports = {
],

transform: {
'^.+\\.tsx?$': '@swc/jest',
'^.+\\.(j|t)s$': '@swc/jest',
},

testEnvironment: 'node',
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"experimentalDecorators": true,
"target": "ES2020",
"target": "ES2019",
"allowJs": true,
"outDir": "./dist/",
"skipLibCheck": true,
Expand Down

0 comments on commit 5fd2a6c

Please sign in to comment.