forked from CMU-313/cmu-313-f24-nodebb-f24-NodeBB
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
113 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,4 +73,6 @@ link-plugins.sh | |
test.sh | ||
|
||
.docker/** | ||
!**/.gitkeep | ||
!**/.gitkeep | ||
# stryker temp files | ||
.stryker-tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
[32m18:38:05 (1247) INFO ProjectReader[39m Found 550 of 10610 file(s) to be mutated. | ||
[91m18:38:06 (1247) ERROR Stryker[39m Unexpected error occurred while running Stryker SyntaxError: /home/kajalm/nodebb-f24-team-wooshiland/src/cli/index.js: 'return' outside of function. (114:1) | ||
|
||
112 | if (!configExists && process.argv[2] !== 'setup') { | ||
113 | require('./setup').webInstall(); | ||
> 114 | return; | ||
| ^ | ||
115 | } | ||
116 | | ||
117 | if (configExists) { | ||
at constructor (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/@babel/parser/lib/index.js:362:19) | ||
at V8IntrinsicMixin.raise (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/@babel/parser/lib/index.js:3259:19) | ||
at V8IntrinsicMixin.parseReturnStatement (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/@babel/parser/lib/index.js:12617:12) | ||
at V8IntrinsicMixin.parseStatementContent (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/@babel/parser/lib/index.js:12275:21) | ||
at V8IntrinsicMixin.parseStatementLike (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/@babel/parser/lib/index.js:12244:17) | ||
at V8IntrinsicMixin.parseStatementListItem (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/@babel/parser/lib/index.js:12224:17) | ||
at V8IntrinsicMixin.parseBlockOrModuleBlockBody (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/@babel/parser/lib/index.js:12797:61) | ||
at V8IntrinsicMixin.parseBlockBody (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/@babel/parser/lib/index.js:12790:10) | ||
at V8IntrinsicMixin.parseBlock (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/@babel/parser/lib/index.js:12778:10) | ||
at V8IntrinsicMixin.parseStatementContent (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/@babel/parser/lib/index.js:12334:21) | ||
at V8IntrinsicMixin.parseStatementLike (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/@babel/parser/lib/index.js:12244:17) | ||
at V8IntrinsicMixin.parseStatementOrSloppyAnnexBFunctionDeclaration (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/@babel/parser/lib/index.js:12234:17) | ||
at V8IntrinsicMixin.parseIfStatement (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/@babel/parser/lib/index.js:12611:28) | ||
at V8IntrinsicMixin.parseStatementContent (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/@babel/parser/lib/index.js:12273:21) | ||
at V8IntrinsicMixin.parseStatementLike (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/@babel/parser/lib/index.js:12244:17) | ||
at V8IntrinsicMixin.parseModuleItem (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/@babel/parser/lib/index.js:12221:17) | ||
at V8IntrinsicMixin.parseBlockOrModuleBlockBody (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/@babel/parser/lib/index.js:12797:36) | ||
at V8IntrinsicMixin.parseBlockBody (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/@babel/parser/lib/index.js:12790:10) | ||
at V8IntrinsicMixin.parseProgram (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/@babel/parser/lib/index.js:12118:10) | ||
at V8IntrinsicMixin.parseTopLevel (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/@babel/parser/lib/index.js:12108:25) | ||
at V8IntrinsicMixin.parse (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/@babel/parser/lib/index.js:13924:10) | ||
at parse (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/@babel/parser/lib/index.js:13958:38) | ||
at parser (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/@babel/core/lib/parser/index.js:41:34) | ||
at parser.next (<anonymous>) | ||
at parse (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/@babel/core/lib/parse.js:25:37) | ||
at parse.next (<anonymous>) | ||
at step (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/gensync/index.js:261:32) | ||
at /home/kajalm/nodebb-f24-team-wooshiland/node_modules/gensync/index.js:273:13 | ||
at async.call.result.err.err (/home/kajalm/nodebb-f24-team-wooshiland/node_modules/gensync/index.js:223:11) { | ||
code: 'BABEL_PARSE_ERROR', | ||
reasonCode: 'IllegalReturn', | ||
loc: Position { line: 114, column: 1, index: 3699 }, | ||
pos: 3699, | ||
syntaxPlugin: undefined | ||
} | ||
[32m18:38:06 (1247) INFO Stryker[39m This might be a known problem with a solution documented in our troubleshooting guide. | ||
[32m18:38:06 (1247) INFO Stryker[39m You can find it at https://stryker-mutator.io/docs/stryker-js/troubleshooting/ | ||
[32m18:38:06 (1247) INFO Stryker[39m Still having trouble figuring out what went wrong? Try `npx stryker run --fileLogLevel trace --logLevel debug` to get some more info. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
kajalm@SurfaceGo2:~/nodebb-f24-team-wooshiland$ npm install -g stryker-cli | ||
|
||
changed 41 packages in 4s | ||
|
||
4 packages are looking for funding | ||
run `npm fund` for details | ||
kajalm@SurfaceGo2:~/nodebb-f24-team-wooshiland$ npm install --save-dev @stryker-mutator/core | ||
npm warn deprecated [email protected]: This package is no longer supported. | ||
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported | ||
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported | ||
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported | ||
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported | ||
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported | ||
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported | ||
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported | ||
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported | ||
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported | ||
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported | ||
|
||
added 572 packages, changed 2 packages, and audited 1475 packages in 11s | ||
|
||
225 packages are looking for funding | ||
run `npm fund` for details | ||
|
||
23 vulnerabilities (9 low, 11 moderate, 3 high) | ||
|
||
To address issues that do not require attention, run: | ||
npm audit fix | ||
|
||
To address all issues possible (including breaking changes), run: | ||
npm audit fix --force | ||
|
||
Some issues need review, and may require choosing | ||
a different dependency. | ||
|
||
Run `npm audit` for details. | ||
kajalm@SurfaceGo2:~/nodebb-f24-team-wooshiland$ npx stryker init | ||
✔ Are you using one of these frameworks? Then select a preset configuration. None/other | ||
✔ Which test runner do you want to use? If your test runner isn't listed here, you can choose "command" (it uses your | ||
`npm test` command, but will come with a big performance penalty) command | ||
✔ What build command should be executed just before running your tests? For example: "npm run build" or "tsc -b" (leave | ||
empty when this is not needed). none | ||
✔ Which reporter(s) do you want to use? html, clear-text, progress, dashboard | ||
✔ Which package manager do you want to use? npm | ||
✔ What file type do you want for your config file? JavaScript | ||
Writing & formatting stryker.config.mjs ... | ||
Note: Your .gitignore file has been updated to include recommended git ignore patterns for Stryker | ||
Done configuring stryker. Please review "stryker.config.mjs", you might need to configure your test runner correctly. | ||
Let's kill some mutants with this command: `stryker run` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// @ts-check | ||
/** @type {import('@stryker-mutator/api/core').PartialStrykerOptions} */ | ||
const config = { | ||
_comment: | ||
"This config was generated using 'stryker init'. Please take a look at: https://stryker-mutator.io/docs/stryker-js/configuration/ for more information.", | ||
packageManager: "npm", | ||
reporters: ["html", "clear-text", "progress", "dashboard"], | ||
testRunner: "command", | ||
testRunner_comment: | ||
"Take a look at (missing 'homepage' URL in package.json) for information about the command plugin.", | ||
coverageAnalysis: "off", | ||
}; | ||
export default config; |