Skip to content

Commit c027e7f

Browse files
author
nickpape-msft
authored
Karma: automatically create the tests.js file with a user-specified RegExp pattern (microsoft#70)
* Automatically create the tests.js file in the tempFolder with a pattern from taskConfig * Automatically create the tests.js file in the temp folder with a user-specified RegExp * Remove unneeded code * Changefile * Remove commented out code * Add a try catch block around the RegExp constructor
1 parent cbb5c6c commit c027e7f

27 files changed

Lines changed: 223 additions & 49 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@microsoft/web-library-build",
5+
"comment": "Refactor the build task to not run \"text\" subtask twice.",
6+
"type": "patch"
7+
},
8+
{
9+
"packageName": "@microsoft/gulp-core-build-karma",
10+
"comment": "Add an additional configuration option (testMatch) to the KarmaTask configuration. If this option is specified, the KarmaTask will create a tests.js file in the temp folder which uses the testMatch regular expression to locate test files.",
11+
"type": "minor"
12+
}
13+
],
14+
"email": "nickpape-msft@users.noreply.github.com"
15+
}

‎common/npm-shrinkwrap.json‎

Lines changed: 13 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎common/reviews/PackageDependencies.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
},
6262
{
6363
"name": "chai",
64-
"allowedCategories": [ "libraries" ]
64+
"allowedCategories": [ "libraries", "other" ]
6565
},
6666
{
6767
"name": "deasync",

‎common/reviews/api/api-extractor.api.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,4 @@ interface IExtractorOptions {
8080
}
8181

8282
// WARNING: Unsupported export: ApiErrorHandler
83+
// @public
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
// WARNING: Unsupported export: karma
22
// WARNING: Unsupported export: default
3+
// (No packageDescription for this package)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
// WARNING: Unsupported export: instrument
22
// WARNING: Unsupported export: mocha
33
// WARNING: Unsupported export: default
4+
// (No packageDescription for this package)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
// WARNING: Unsupported export: sass
22
// WARNING: Unsupported export: default
3+
// (No packageDescription for this package)

‎common/reviews/api/gulp-core-build-serve.api.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
// WARNING: Unsupported export: trustDevCert
44
// WARNING: Unsupported export: untrustDevCert
55
// WARNING: Unsupported export: default
6+
// (No packageDescription for this package)

‎common/reviews/api/gulp-core-build-webpack.api.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ class WebpackTask extends GulpTask<IWebpackTaskConfig> {
2222

2323
// WARNING: Unsupported export: webpack
2424
// WARNING: Unsupported export: default
25+
// (No packageDescription for this package)

‎common/reviews/api/gulp-core-build.api.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,4 @@ export function warn(...args: Array<string | Chalk.ChalkChain>): void;
171171
export function watch(watchMatch: string | string[], task: IExecutable): IExecutable;
172172

173173
// WARNING: Unsupported export: clean
174+
// (No packageDescription for this package)

0 commit comments

Comments
 (0)