mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
Replace MOCHA_GREP with TEST_NAME_PATTERN (#34404)
GitOrigin-RevId: b1b2d1be3d0725f930d83ef035836482ffb72dcd
This commit is contained in:
committed by
Copybot
parent
daf4a0e412
commit
a63fd554c3
@@ -7,7 +7,7 @@
|
||||
"scripts": {
|
||||
"start": "node app.js",
|
||||
"test:acceptance:_run": "mocha --recursive --timeout 15000 --exit --retries=$RETRIES $@ test/acceptance/js",
|
||||
"test:acceptance": "yarn run test:acceptance:_run -- --grep=$MOCHA_GREP",
|
||||
"test:acceptance": "yarn run test:acceptance:_run -- --grep=$TEST_NAME_PATTERN",
|
||||
"test:unit:_run": "vitest --config ./vitest.config.unit.cjs",
|
||||
"test:unit": "yarn run test:unit:_run",
|
||||
"nodemon": "node --watch app.js",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
module.exports = {
|
||||
reporterEnabled: 'spec, mocha-junit-reporter',
|
||||
mochaJunitReporterReporterOptions: {
|
||||
mochaFile: `reports/junit-mocha-${process.env.MOCHA_GREP}.xml`,
|
||||
mochaFile: `reports/junit-mocha-${process.env.TEST_NAME_PATTERN}.xml`,
|
||||
includePending: true,
|
||||
jenkinsMode: true,
|
||||
output: true,
|
||||
|
||||
@@ -20,6 +20,7 @@ module.exports = defineConfig({
|
||||
include: ['test/unit/js/*.test.{js,ts}'],
|
||||
setupFiles: ['./test/unit/setup.js'],
|
||||
isolate: true,
|
||||
testNamePattern: process.env.TEST_NAME_PATTERN || undefined,
|
||||
...reporterOptions,
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user