Переглянути джерело

Use babel config in alltheplaces

Steven Silvester 6 роки тому
батько
коміт
498268e5be
2 змінених файлів з 6 додано та 13 видалено
  1. 5 1
      tests/convert-to-jest.js
  2. 1 12
      tests/test-application/babel.config.js

+ 5 - 1
tests/convert-to-jest.js

@@ -77,8 +77,12 @@ utils.writeJSONFile(path.join(testSrc, 'tsconfig.json'), tsData);
   utils.run(`git rm -f ./test-${name}/${fname}`);
 });
 
-// Copy run.py from coreutils
+// Copy common files from coreutils
 fs.copySync(path.join(coreUtils, 'run.py'), path.join(testSrc, 'run.py'));
+fs.copySync(
+  path.join(coreUtils, 'run.py'),
+  path.join(testSrc, 'babel.config.js')
+);
 
 // Add new files to git
 utils.run(`git add ./test-${name}/run.py ./test-${name}/jest.config.js`);

+ 1 - 12
tests/test-application/babel.config.js

@@ -1,12 +1 @@
-module.exports = {
-  presets: [
-    [
-      '@babel/preset-env',
-      {
-        targets: {
-          node: 'current'
-        }
-      }
-    ]
-  ]
-};
+module.exports = require('@jupyterlab/testutils/lib/jest-config');