mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
Merge pull request #14666 from overleaf/ae-babel-plugin-module-resolver
Fix import alias handling for mocha and Storybook GitOrigin-RevId: aa2fd23bb1ca1ebc44afc725258bc61d3d100038
This commit is contained in:
+1
@@ -1,6 +1,7 @@
|
||||
// Run babel on tests to allow support for import/export statements in Node
|
||||
require('@babel/register')({
|
||||
extensions: ['.ts', '.tsx', '.js', '.jsx', '.mjs'],
|
||||
plugins: [['module-resolver', { alias: { '^@/(.+)': './frontend/js/\\1' } }]],
|
||||
})
|
||||
|
||||
// Load JSDOM to mock the DOM in Node
|
||||
|
||||
Reference in New Issue
Block a user