aurelia / testing

Simplifies the testing of UI components by providing an elegant, fluent interface for arranging test setups along with a number of runtime debug/test helpers.
MIT License
40 stars 27 forks source link

Can't resolve ./compile-spy or ./view-spy after 1.1.0 upgrade #101

Closed lebolo closed 2 years ago

lebolo commented 2 years ago

I'm submitting a bug report

Please tell us about your environment:

Current behavior: On running npm run build:dev (aliased to webpack --extractCss --env.NODE_ENV=development), I get the following build error:

ERROR in ./node_modules/aurelia-testing/dist/native-modules/aurelia-testing.js
Module not found: Error: Can't resolve './compile-spy' in '/builds/.../node_modules/aurelia-testing/dist/native-modules'
 @ ./node_modules/aurelia-testing/dist/native-modules/aurelia-testing.js
 @ ./src/main.ts
 @ ./node_modules/aurelia-webpack-plugin/runtime/empty-entry.js
 @ multi aurelia-webpack-plugin/runtime/empty-entry aurelia-webpack-plugin/runtime/pal-loader-entry aurelia-bootstrapper

ERROR in ./node_modules/aurelia-testing/dist/native-modules/aurelia-testing.js
Module not found: Error: Can't resolve './view-spy' in '/builds/.../node_modules/aurelia-testing/dist/native-modules'
 @ ./node_modules/aurelia-testing/dist/native-modules/aurelia-testing.js
 @ ./src/main.ts
 @ ./node_modules/aurelia-webpack-plugin/runtime/empty-entry.js
 @ multi aurelia-webpack-plugin/runtime/empty-entry aurelia-webpack-plugin/runtime/pal-loader-entry aurelia-bootstrapper

This is from our build pipeline. If I lock down aurelia-testing in our package-json to ~1.0.0 (it used to be ^1.0.0 and was picking up 1.1.0 on an npm i), it works.

3cp commented 2 years ago

https://aurelia.io/blog/2022/5/10/aurelia-updates-for-may-2022/