|
|
@@ -1,7 +1,17 @@
|
|
|
// 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' } }]],
|
|
|
+ plugins: [
|
|
|
+ [
|
|
|
+ 'module-resolver',
|
|
|
+ {
|
|
|
+ alias: {
|
|
|
+ '^@/(.+)': './frontend/js/\\1',
|
|
|
+ '^@modules/(.+)': './modules/\\1',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ ],
|
|
|
})
|
|
|
|
|
|
// Load JSDOM to mock the DOM in Node
|