Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit c8afe9f

Browse files
author
Fatme
authored
fix: add support for executing unit tests for vue projects (#839) (#870)
1 parent d4ad5fe commit c8afe9f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

‎templates/webpack.vue.js‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,21 @@ module.exports = env => {
253253
],
254254
};
255255

256+
if (unitTesting) {
257+
config.module.rules.push(
258+
{
259+
test: /-page\.js$/,
260+
use: "nativescript-dev-webpack/script-hot-loader"
261+
},
262+
{
263+
test: /\.(html|xml)$/,
264+
use: "nativescript-dev-webpack/markup-hot-loader"
265+
},
266+
267+
{ test: /\.(html|xml)$/, use: "nativescript-dev-webpack/xml-namespace-loader"}
268+
);
269+
}
270+
256271
// Copy the native app resources to the out dir
257272
// only if doing a full build (tns run/build) and not previewing (tns preview)
258273
if (!externals || externals.length === 0) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /