Skip to content

Commit

Permalink
Fix grep fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
bearfriend committed Feb 16, 2024
1 parent c9b24b4 commit 5977319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browser/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ chai.Assertion.addMethod('golden', function(...args) {
window._attemptFiles ??= {};

mocha.setup({
grep: window._attemptFiles[window.__WTR_CONFIG__.testFile.split('?')[0].slice(1)] || window.__WTR_CONFIG__.testFrameworkConfig.grep,
grep: window._attemptFiles[window.__WTR_CONFIG__.testFile.split('?')[0].slice(1)] || window.__WTR_CONFIG__.testFrameworkConfig?.grep,
rootHooks: {
beforeEach() {
test = this.currentTest;
Expand Down

0 comments on commit 5977319

Please sign in to comment.