clet
clet copied to clipboard
Command Line E2E Testing
Running a simple test gives the error before the test runs: ``` Details: /node_modules/clet/lib/validator.js:80 var _filename = (0, _dirnameFilenameEsm.filename)(import.meta); ^^^^ SyntaxError: Cannot use 'import.meta' outside a module ``` This happens...
``` Details: .../node_modules/.pnpm/[email protected]/node_modules/clet/lib/runner.js:1 ({"Object.":function(module,exports,require,__dirname,__filename,jest){import { EOL } from 'os'; ^^^^^^ SyntaxError: Cannot use import statement outside a module ```
When installing `clet`, Solution: either add `typescript` into devDependencies or create a .npmrc file with `auto-install-peers=true` I personally prefer the first solution.