You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am new to mutation testing and excited to introduce it to my team as part of our testing strategy. However, I am getting an error when trying to run (npx stryker run) it for the first time in our React frontend project. I would really appreciate all the help I can get to resolve this error. More details on it are below.
21:02:00 (97983) DEBUG PluginLoader Loading @stryker-mutator/* from /Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/@stryker-mutator
21:02:00 (97983) DEBUG PluginLoader Loading plugin "@stryker-mutator/jest-runner" (matched with expression @stryker-mutator/*)
21:02:00 (97983) DEBUG PluginLoader Loading plugin @stryker-mutator/jest-runner
21:02:00 (97983) DEBUG PluginLoader Loading plugin file:///Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/@stryker-mutator/core/dist/src/reporters/index.js
21:02:00 (97983) DEBUG MetaSchemaBuilder Contributing 1 schemas from plugins to options validation.
21:02:02 (97983) INFO ProjectReader Found 1136 of 2847 file(s) to be mutated.
21:02:02 (97983) DEBUG TemporaryDirectory Using temp directory "/Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/.stryker-tmp"
21:02:02 (97983) DEBUG Instrumenter Instrumenting 1136 source files with mutants
21:02:02 (97983) DEBUG Stryker Not removing the temp dir because an error occurred
21:02:02 (97983) ERROR Stryker Unexpected error occurred while running Stryker SyntaxError: /Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/src/client/bffmodelhydrators/Reminder/__fixtures__/index.js: Unexpected token, expected "," (8:7)
6 | import { fixedMkReminders } from '#models/Reminders/__fixtures__'
7 | import mkRemindersViews, {
> 8 | type RemindersViews,
| ^
9 | type RemindersViewsOptions,
10 | } from '../'
11 |
at constructor (/Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/@stryker-mutator/instrumenter/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:353:19)
at V8IntrinsicMixin.raise (/Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/@stryker-mutator/instrumenter/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:3277:19)
at V8IntrinsicMixin.unexpected (/Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/@stryker-mutator/instrumenter/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:3297:16)
at V8IntrinsicMixin.expect (/Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/@stryker-mutator/instrumenter/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:3601:28)
at V8IntrinsicMixin.parseNamedImportSpecifiers (/Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/@stryker-mutator/instrumenter/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:13853:14)
at V8IntrinsicMixin.parseImportSpecifiersAndAfter (/Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/@stryker-mutator/instrumenter/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:13694:37)
at V8IntrinsicMixin.parseImport (/Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/@stryker-mutator/instrumenter/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:13687:17)
at V8IntrinsicMixin.parseStatementContent (/Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/@stryker-mutator/instrumenter/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:12347:27)
at V8IntrinsicMixin.parseStatementLike (/Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/@stryker-mutator/instrumenter/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:12239:17)
at V8IntrinsicMixin.parseModuleItem (/Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/@stryker-mutator/instrumenter/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:12216:17)
at V8IntrinsicMixin.parseBlockOrModuleBlockBody (/Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/@stryker-mutator/instrumenter/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:12796:36)
at V8IntrinsicMixin.parseBlockBody (/Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/@stryker-mutator/instrumenter/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:12789:10)
at V8IntrinsicMixin.parseProgram (/Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/@stryker-mutator/instrumenter/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:12116:10)
at V8IntrinsicMixin.parseTopLevel (/Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/@stryker-mutator/instrumenter/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:12106:25)
at V8IntrinsicMixin.parse (/Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/@stryker-mutator/instrumenter/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:13905:10)
at parse (/Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/@stryker-mutator/instrumenter/node_modules/@babel/core/node_modules/@babel/parser/lib/index.js:13947:38)
at parser (/Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/@stryker-mutator/instrumenter/node_modules/@babel/core/lib/parser/index.js:41:34)
at parser.next (<anonymous>)
at parse (/Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/@stryker-mutator/instrumenter/node_modules/@babel/core/lib/parse.js:25:37)
at parse.next (<anonymous>)
at step (/Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/gensync/index.js:261:32)
at /Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/gensync/index.js:273:13
at async.call.result.err.err (/Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/gensync/index.js:223:11)
at /Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/gensync/index.js:189:28
at /Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/@stryker-mutator/instrumenter/node_modules/@babel/core/lib/gensync-utils/async.js:67:7
at /Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/gensync/index.js:113:33
at step (/Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/gensync/index.js:287:14)
at /Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/gensync/index.js:273:13
at async.call.result.err.err (/Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/gensync/index.js:223:11)
at /Users/prateeksaxena/IdeaProjects/vimcar-frontend-fleet/node_modules/gensync/index.js:189:28
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read/context:68:3) {
code: 'BABEL_PARSE_ERROR',
reasonCode: 'UnexpectedToken',
loc: Position { line: 8, column: 7, index: 260 },
pos: 260
}
The text was updated successfully, but these errors were encountered:
Question
I am new to mutation testing and excited to introduce it to my team as part of our testing strategy. However, I am getting an error when trying to run (
npx stryker run
) it for the first time in our React frontend project. I would really appreciate all the help I can get to resolve this error. More details on it are below.Stryker environment
Stryker config
package.json
Stryker log
The text was updated successfully, but these errors were encountered: