Skip to content

Commit

Permalink
feat(ci): forbid .only in CI pipeline tests (#3823)
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovds authored Oct 30, 2022
1 parent 77e2254 commit 051ec93
Show file tree
Hide file tree
Showing 19 changed files with 48 additions and 38 deletions.
5 changes: 5 additions & 0 deletions packages/api/.mocharc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
"require": ["dist/test/setup.js"],
"timeout": 10000,
"forbidOnly": Boolean(process.env.CI)
}
4 changes: 0 additions & 4 deletions packages/api/.mocharc.jsonc

This file was deleted.

5 changes: 5 additions & 0 deletions packages/core/.mocharc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
"require": ["./dist/test/setup.js"],
"timeout": 10000,
"forbidOnly": Boolean(process.env.CI)
}
4 changes: 0 additions & 4 deletions packages/core/.mocharc.jsonc

This file was deleted.

5 changes: 5 additions & 0 deletions packages/cucumber-runner/.mocharc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
"require": "dist/test/setup.js",
"timeout": 10000,
"forbidOnly": Boolean(process.env.CI)
}
4 changes: 0 additions & 4 deletions packages/cucumber-runner/.mocharc.jsonc

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
module.exports = {
"require": ["dist/test/setup.js"],
"spec": [
"dist/test/unit/**/*.js",
"dist/test/integration/**/*.js"
],
"timeout": 10000
"timeout": 10000,
"forbidOnly": Boolean(process.env.CI)
}
5 changes: 5 additions & 0 deletions packages/jasmine-runner/.mocharc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
"require": ["dist/test/setup.js"],
"timeout": 30000,
"forbidOnly": Boolean(process.env.CI)
}
4 changes: 0 additions & 4 deletions packages/jasmine-runner/.mocharc.jsonc

This file was deleted.

5 changes: 5 additions & 0 deletions packages/jest-runner/.mocharc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
"require": "dist/test/setup.js",
"timeout": 10000,
"forbidOnly": Boolean(process.env.CI)
}
4 changes: 0 additions & 4 deletions packages/jest-runner/.mocharc.jsonc

This file was deleted.

5 changes: 5 additions & 0 deletions packages/karma-runner/.mocharc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
"require": "dist/test/setup.js",
"timeout": 10000,
"forbidOnly": Boolean(process.env.CI)
}
4 changes: 0 additions & 4 deletions packages/karma-runner/.mocharc.jsonc

This file was deleted.

5 changes: 5 additions & 0 deletions packages/mocha-runner/.mocharc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
"require": "dist/test/setup.js",
"timeout": 10000,
"forbidOnly": Boolean(process.env.CI)
}
4 changes: 0 additions & 4 deletions packages/mocha-runner/.mocharc.jsonc

This file was deleted.

5 changes: 5 additions & 0 deletions packages/typescript-checker/.mocharc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
"require": ["dist/test/setup.js"],
"timeout": 10000,
"forbidOnly": Boolean(process.env.CI)
}
4 changes: 0 additions & 4 deletions packages/typescript-checker/.mocharc.jsonc

This file was deleted.

5 changes: 5 additions & 0 deletions packages/util/.mocharc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
"require": ["dist/test/setup.js"],
"timeout": 10000,
"forbidOnly": Boolean(process.env.CI)
}
4 changes: 0 additions & 4 deletions packages/util/.mocharc.jsonc

This file was deleted.

0 comments on commit 051ec93

Please sign in to comment.