File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ // Babel config, used by Jest
2+ module . exports = {
3+ plugins : [ "@babel/plugin-transform-modules-commonjs" ] ,
4+ presets : [
5+ [
6+ "@babel/env" ,
7+ {
8+ targets : {
9+ node : "16.12" ,
10+ } ,
11+ } ,
12+ ] ,
13+ "@babel/preset-typescript" ,
14+ ] ,
15+ env : {
16+ test : {
17+ plugins : [ "babel-plugin-transform-import-meta" ] ,
18+ presets : [
19+ [
20+ "@babel/env" ,
21+ {
22+ targets : {
23+ node : "current" ,
24+ } ,
25+ } ,
26+ ] ,
27+ "@babel/preset-typescript" ,
28+ ] ,
29+ } ,
30+ } ,
31+ } ;
Original file line number Diff line number Diff line change 3131 },
3232 "devDependencies" : {
3333 "@babel/eslint-parser" : " ^7.22.11" ,
34+ "@babel/plugin-transform-modules-commonjs" : " ^7.22.11" ,
35+ "@babel/plugin-transform-runtime" : " ^7.22.10" ,
36+ "@babel/preset-env" : " ^7.22.14" ,
37+ "@babel/preset-typescript" : " ^7.22.11" ,
3438 "@dataplan/pg" : " ^0.0.1-beta.1" ,
3539 "@tsconfig/node16" : " ^1.0.3" ,
3640 "@types/jest" : " 29.5.0" ,
3741 "@typescript-eslint/eslint-plugin" : " ^6.5.0" ,
3842 "@typescript-eslint/parser" : " ^6.5.0" ,
3943 "@typescript-eslint/typescript-estree" : " ^6.5.0" ,
44+ "babel-jest" : " ^29.6.4" ,
45+ "babel-plugin-transform-import-meta" : " ^2.2.1" ,
4046 "eslint" : " ^8.48.0" ,
4147 "eslint-config-prettier" : " ^9.0.0" ,
4248 "eslint-plugin-import" : " ^2.28.1" ,
You can’t perform that action at this time.
0 commit comments