vue-debounce-decorator icon indicating copy to clipboard operation
vue-debounce-decorator copied to clipboard

Use causes Cannot use import statement outside a module

Open SumNeuron opened this issue 5 years ago • 2 comments

SumNeuron avatar May 13 '20 18:05 SumNeuron

I have the same error, when try run test...

Roshett avatar Jun 06 '20 10:06 Roshett

I encountered the same problem during executing Jest tests. You need to add this module to the transformIgnorePatterns array within your Jest Configuration (for example within the jest.config.js file).

// ...

transformIgnorePatterns: [
    '/node_modules/(?!(vue-debounce-decorator)/)',
],

// ...

maartenpaauw avatar Feb 10 '21 11:02 maartenpaauw