-
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Use swc instead of babel for tests + some tweak in docs
- Loading branch information
Showing
6 changed files
with
100 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"jsc": { | ||
"target": "es2017", | ||
"parser": { | ||
"syntax": "typescript", | ||
"tsx": true, | ||
"decorators": false, | ||
"dynamicImport": false | ||
}, | ||
"transform": { | ||
"react": { | ||
"pragma": "React.createElement", | ||
"pragmaFrag": "React.Fragment", | ||
"throwIfNamespace": true, | ||
"development": false, | ||
"useBuiltins": false, | ||
"runtime": "automatic" | ||
}, | ||
"hidden": { | ||
"jest": true | ||
} | ||
} | ||
}, | ||
"module": { | ||
"type": "commonjs", | ||
"strict": false, | ||
"strictMode": true, | ||
"lazy": false, | ||
"noInterop": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { jestPreviewConfigure } from 'jest-preview'; | ||
// Import your global CSS here | ||
import './app/styles/global.css'; | ||
|
||
jestPreviewConfigure({ | ||
// An array of relative path from the root of your project | ||
externalCss: [ | ||
'app/styles/global.css', | ||
], | ||
// (Optional) Enable autoPreview so you get previewing for free, | ||
// automatically without having to call debug(), whenever your test fails. | ||
// autoPreview: true, | ||
// Enable autoPreview to automatically preview the UI whenever your test fails. | ||
autoPreview: true, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters