Skip to content

Commit 10079df

Browse files
authored
fix: Fix running browser tests (#9587)
* fix: Fix running browser tests * chore: Run lint
1 parent 2ada188 commit 10079df

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packages/blockly/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"start": "npm run build && concurrently -n tsc,server \"tsc --watch --preserveWatchOutput --outDir \"build/src\" --declarationDir \"build/declarations\"\" \"http-server ./ -s -o /tests/playground.html -c-1\"",
4444
"tsc": "gulp tsc",
4545
"test": "gulp test",
46-
"test:browser": "cd tests/browser && npx mocha",
46+
"test:browser": "npx mocha --config tests/browser/.mocharc.js",
4747
"test:generators": "gulp testGenerators",
4848
"test:mocha:interactive": "npm run build && concurrently -n tsc,server \"tsc --watch --preserveWatchOutput --outDir \"build/src\" --declarationDir \"build/declarations\"\" \"gulp interactiveMocha\"",
4949
"test:compile:advanced": "gulp buildAdvancedCompilationTest --debug",

packages/blockly/tests/browser/.mocharc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
module.exports = {
44
ui: 'tdd',
55
require: __dirname + '/test/hooks.mjs',
6+
spec: 'tests/browser/test/**/*_test.mjs',
67
};

0 commit comments

Comments
 (0)