Answers for "cannot use import statement outside a module in jest"

1

jest : Cannot use import statement outside a module

// jest.config.js
preset: 'ts-jest'
Posted by: Guest on June-12-2021
0

cannot use import statement outside a module in jest

"scripts": {
    "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
}
Posted by: Guest on August-03-2021
0

cannot use import statement outside a module in jest

export default {
    testEnvironment: 'jest-environment-node',
    transform: {}
 
};
Posted by: Guest on August-03-2021

Code answers related to "cannot use import statement outside a module in jest"

Browse Popular Code Answers by Language