Skip to content

Commit

Permalink
fix: next failing with bable custom config
Browse files Browse the repository at this point in the history
  • Loading branch information
design1online committed Oct 13, 2023
1 parent a4800cb commit 617d67d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 0 additions & 6 deletions babel.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion coverage/lcov-report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ <h1>All files</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-10-12T22:29:29.205Z
at 2023-10-13T01:15:33.030Z
</div>
<script src="prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require('path');
const nextConfig = {
sassOptions: {
includePaths: [path.join(__dirname, 'styles')],
},
}
}

module.exports = nextConfig
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,13 @@
"engineStrict": true,
"jest": {
"transform": {
"^.+\\.js?$": "babel-jest",
"^.+\\.ts?$": "babel-jest",
"^.+\\.tsx?$": "babel-jest"
"\\.[jt]sx?$": ["babel-jest", {
"presets": [
"next/babel",
"@babel/preset-typescript",
"@babel/preset-env"
]
}]
},
"testEnvironment": "jsdom",
"coverageDirectory": "./coverage/",
Expand Down Expand Up @@ -105,6 +109,7 @@
"devDependencies": {
"@babel/core": "^7.23.2",
"@babel/eslint-parser": "^7.22.15",
"@babel/plugin-syntax-import-assertions": "^7.22.5",
"@babel/preset-env": "^7.23.2",
"@babel/preset-typescript": "^7.23.2",
"@types/jquery": "^3.5.22",
Expand Down

0 comments on commit 617d67d

Please sign in to comment.