Skip to content

Commit

Permalink
Remove babel dependency for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienGllmt committed Sep 30, 2023
1 parent e2c4fe1 commit ff6f75e
Show file tree
Hide file tree
Showing 10 changed files with 65 additions and 36 deletions.
70 changes: 58 additions & 12 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions packages/paima-sdk/paima-concise/babel.config.cjs

This file was deleted.

2 changes: 0 additions & 2 deletions packages/paima-sdk/paima-concise/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
"web3-utils": "1.10.0"
},
"devDependencies": {
"@babel/preset-env": "^7.22.9",
"@babel/preset-typescript": "^7.22.5",
"@types/node": "^18.17.1",
"ts-jest": "^29.1.1",
"@paima/utils": "1.1.0"
Expand Down
3 changes: 0 additions & 3 deletions packages/paima-sdk/paima-crypto/babel.config.cjs

This file was deleted.

5 changes: 2 additions & 3 deletions packages/paima-sdk/paima-crypto/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ export default {
preset: 'ts-jest/presets/default-esm',
testEnvironment: 'node',
transform: {
'^.+\\.(t)s$': ['ts-jest', { useESM: true, }],
'^.+\\.(j)s$': 'babel-jest',
'^.+\\.[tj]sx?$': ['ts-jest', { useESM: true, }],
},
transformIgnorePatterns: [
'<rootDir>/node_modules/',
],
moduleNameMapper: {
'^(\\.\\.?\\/.+)\\.jsx?$': '$1'
'^(\\.{1,2}/.*)\\.js$': '$1',
},
modulePathIgnorePatterns: ['<rootDir>/build/'],
};
3 changes: 0 additions & 3 deletions packages/paima-sdk/paima-providers/babel.config.cjs

This file was deleted.

5 changes: 2 additions & 3 deletions packages/paima-sdk/paima-providers/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ export default {
preset: 'ts-jest/presets/default-esm',
testEnvironment: 'node',
transform: {
'^.+\\.(t)s$': ['ts-jest', { useESM: true, }],
'^.+\\.(j)s$': 'babel-jest',
'^.+\\.[tj]sx?$': ['ts-jest', { useESM: true, }],
},
transformIgnorePatterns: [
'<rootDir>/node_modules/',
],
moduleNameMapper: {
'^(\\.\\.?\\/.+)\\.jsx?$': '$1'
'^(\\.{1,2}/.*)\\.js$': '$1',
},
modulePathIgnorePatterns: ['<rootDir>/build/'],
};
3 changes: 0 additions & 3 deletions packages/paima-sdk/paima-utils/babel.config.cjs

This file was deleted.

5 changes: 2 additions & 3 deletions packages/paima-sdk/paima-utils/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ export default {
preset: 'ts-jest/presets/default-esm',
testEnvironment: 'node',
transform: {
'^.+\\.(t)s$': ['ts-jest', { useESM: true, }],
'^.+\\.(j)s$': 'babel-jest',
'^.+\\.[tj]sx?$': ['ts-jest', { useESM: true, }],
},
transformIgnorePatterns: [
'<rootDir>/node_modules/',
],
moduleNameMapper: {
'^(\\.\\.?\\/.+)\\.jsx?$': '$1'
'^(\\.{1,2}/.*)\\.js$': '$1',
},
modulePathIgnorePatterns: ['<rootDir>/build/'],
};
Expand Down
2 changes: 1 addition & 1 deletion tools/scripts/check-implicit-dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ async function main() {
}
}

// 4) Check tsconfig paths
// 4) Check tsconfig paths (needed because of https://github.com/nrwl/nx/issues/19391)
{
// json5 to support trailing commas (used in tsconfig.json)
const jsonString = fs.readFileSync(`./tsconfig.base.json`, 'utf-8');
Expand Down

0 comments on commit ff6f75e

Please sign in to comment.