Skip to content

Commit

Permalink
add nextjs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lms24 committed Aug 26, 2024
1 parent 29c675b commit 59f326a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/nestjs/stryker.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const config = {
...baseConfig,
dashboard: {
...baseConfig.dashboard,
module: '@sentry/astro',
module: '@sentry/nestjs',
},
};

Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const baseConfig = require('../../jest/jest.config.js');
const baseConfig = require('@sentry-internal/jest-config');

module.exports = {
...baseConfig,
Expand Down
1 change: 1 addition & 0 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
"test:unit": "jest",
"test:types": "cd test/types && yarn test",
"test:watch": "jest --watch",
"test:mutation": "node ./../../scripts/stryker/run-with-sentry.mjs",
"vercel:branch": "source vercel/set-up-branch-for-test-app-use.sh",
"vercel:project": "source vercel/make-project-use-current-branch.sh",
"yalc:publish": "yalc publish --push --sig"
Expand Down
15 changes: 15 additions & 0 deletions packages/nextjs/stryker.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import baseConfig from '@sentry-internal/stryker-config/config';

/** @type {import('@stryker-mutator/api/core').PartialStrykerOptions} */
const config = {
...baseConfig,
dashboard: {
...baseConfig.dashboard,
module: '@sentry/nextjs',
},
mutate: ['src/**/*.ts', '!src/config/templates/*.ts', 'src/**/*.tsx'],
testRunner: 'jest',
disableTypeChecks: true,
};

export default config;

0 comments on commit 59f326a

Please sign in to comment.