mochapack is a mocha test runner with integrated webpack precompiler
Questions tagged [mochapack]
4 questions
5
votes
1 answer
Vue.js with mocha and styles-resources-loader can't load dependency sass
I have the problem that mochapack does not seem to work together with the style resources loader.
packages that seem to produce the problem:
"@vue/cli-plugin-unit-mocha": "~4.2.0",
"vue-cli-plugin-style-resources-loader": "~0.1.4"
My…

petritz
- 182
- 1
- 9
4
votes
1 answer
Vue scss style loads fails with mocamapck
I'm having a problem when unit testing a vue single file component with some scss styling, as it is unable to process the @import statements. It works when I run launch the app using yarn run dev or build for production yarn run build, issue is only…

BuddhiP
- 6,231
- 5
- 36
- 56
2
votes
0 answers
mochapack --watch fails with "runnable.enableTimeouts is not a function" when VSCode autosaves
We recently introduced mochapack --watch into our testing process
cross-env NODE_ENV=development mochapack --watch --require tests/components/setup.ts \"tests/components/**/*.spec.ts\"
My VSCode instance has autosave turned on. After about two or…

kberg
- 225
- 1
- 8
1
vote
1 answer
SassError: Can't find stylesheet to import. (not from node_modules) (using mochapack)
Attempting to load SCSS files from the relative path within Vue component fails.
Config details:
Using "mochapack": "^2.1.2",
Using "sass-loader": "^10.2.0",
Using
$ node -v
v14.17.0
webpack.config-test.js:
const nodeExternals =…

Philll_t
- 4,267
- 5
- 45
- 59