Skip to content

Commit 27373fd

Browse files
committed
Merge remote-tracking branch 'origin/main' into 1.29-releases
2 parents 1e4b64d + c8f106f commit 27373fd

File tree

127 files changed

+3304
-2930
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+3304
-2930
lines changed

THIRD-PARTY-NOTICES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
The following third-party software is used by and included in **compass**.
2-
This document was automatically generated on Fri Oct 22 2021.
2+
This document was automatically generated on Tue Oct 26 2021.
33

44
## List of dependencies
55

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
const path = require('path');
2+
const specs = process.argv.slice(2).filter((arg) => !arg.startsWith('-'));
3+
4+
// This can be written as `{src,test}/**/*.{spec,test}.*`, but this causes
5+
// issues for mocha on some version. It will try to parse every string in the
6+
// array by splitting on commas causing a wrong spec pattern to be applied. It
7+
// is fixed in latest, but as we are still in the process of updaing
8+
// everything to the same version and working around the issue helps with
9+
// migration (this can be removed when mocha is not in depalignrc anymore)
10+
const defaultSpecs = [
11+
'src/**/*.spec.*',
12+
'src/**/*.test.*',
13+
'test/**/*.spec.*',
14+
'test/**/*.test.*',
15+
];
216

317
module.exports = {
418
colors: true,
@@ -8,18 +22,8 @@ module.exports = {
822
path.resolve(__dirname, 'register', 'tsnode-register.js'),
923
path.resolve(__dirname, 'register', 'sinon-chai-register.js'),
1024
],
11-
// This can be written as `{src,test}/**/*.{spec,test}.*`, but this causes
12-
// issues for mocha on some version. It will try to parse every string in the
13-
// array by splitting on commas causing a wrong spec pattern to be applied. It
14-
// is fixed in latest, but as we are still in the process of updaing
15-
// everything to the same version and working around the issue helps with
16-
// migration (this can be removed when mocha is not in depalignrc anymore)
17-
spec: [
18-
'src/**/*.spec.*',
19-
'src/**/*.test.*',
20-
'test/**/*.spec.*',
21-
'test/**/*.test.*',
22-
],
25+
// Allows to run tests against a particular set of specs instead of all of them
26+
spec: specs.length > 0 ? specs : defaultSpecs,
2327
extension: ['js', 'ts', 'cjs', 'mjs', 'jsx', 'tsx'],
2428
watchFiles: ['test/**/*', 'src/**/*'],
2529
};

0 commit comments

Comments
 (0)