This repository was archived by the owner on Aug 7, 2021. It is now read-only.
File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ const defaultTestFiles = {
39
39
"./_app-variables.scss" : false , // do not include scss partial files
40
40
"./App_Resources/Android/src/main/res/values/colors.xml" : false , // do not include App_Resources
41
41
"./App_Resources/Android/src/main/AndroidManifest.xml" : false , // do not include App_Resources
42
+ "./tests/example.js" : false , // do not include files from tests folder
43
+ "./tests/component1/model1/file1.js" : false , // do not include files from tests folder
44
+ "./components/tests/example.js" : true ,
42
45
} ;
43
46
44
47
const loaderOptionsWithIgnore = {
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import { loader } from "webpack";
3
3
import { getOptions } from "loader-utils" ;
4
4
import * as escapeRegExp from "escape-string-regexp" ;
5
5
6
- // Matches all source, markup and style files that are not in App_Resources
7
- const defaultMatch = "(?<!\\bApp_Resources\\b.*)\\.(xml|css|js|(?<!\\.d\\.)ts|(?<!\\b_[\\w-]*\\.)scss)$" ;
6
+ // Matches all source, markup and style files that are not in App_Resources and in tests folder
7
+ const defaultMatch = "(?<!\\bApp_Resources\\b.*)(?<!\\.\\/\\btests\\b\\/.*?) \\.(xml|css|js|(?<!\\.d\\.)ts|(?<!\\b_[\\w-]*\\.)scss)$" ;
8
8
9
9
const loader : loader . Loader = function ( source , map ) {
10
10
let {
You can’t perform that action at this time.
0 commit comments