Skip to content

Commit

Permalink
upgrade TypeScript to 5.6 (#294)
Browse files Browse the repository at this point in the history
* upgrade TypeScript to 5.6 and use babel for now

* update typescript
  • Loading branch information
mmomtchev committed Sep 24, 2024
1 parent c3a10cb commit d65fb74
Show file tree
Hide file tree
Showing 4 changed files with 1,514 additions and 80 deletions.
9 changes: 8 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@ module.exports = {
testEnvironment: 'jsdom',
roots: ['<rootDir>/test'],
transform: {
'^.+.(t|j)sx?$': [
'\\.tsx?$': [
'ts-jest',
{
tsconfig: {
outDir: './.ts-jest'
}
}
],
'\\.jsx?$': [
'babel-jest',
{
presets: ['@babel/preset-env'],
plugins: ['@babel/plugin-transform-modules-commonjs']
}
]
},
transformIgnorePatterns: [
Expand Down
9 changes: 8 additions & 1 deletion jest.standalone.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@ module.exports = {
testEnvironment: 'jsdom',
roots: ['<rootDir>/test'],
transform: {
'^.+.(t|j)sx?$': [
'\\.tsx?$': [
'ts-jest',
{
tsconfig: {
outDir: './.ts-jest'
}
}
],
'\\.jsx?$': [
'babel-jest',
{
presets: ['@babel/preset-env'],
plugins: ['@babel/plugin-transform-modules-commonjs']
}
]
},
transformIgnorePatterns: [
Expand Down
Loading

0 comments on commit d65fb74

Please sign in to comment.