Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Jan 17, 2025
1 parent d9f934b commit 82df806
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 19 deletions.
36 changes: 18 additions & 18 deletions packages/utils/src/source-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,25 @@ const CHROME_IE_STACK_REGEXP = /^\s*at .*(?:\S:\d+|\(native\))/m
const SAFARI_NATIVE_CODE_REGEXP = /^(?:eval@)?(?:\[native code\])?$/

const stackIgnorePatterns = [
// 'node:internal',
// /\/packages\/\w+\/dist\//,
// /\/@vitest\/\w+\/dist\//,
// '/vitest/dist/',
// '/vitest/src/',
// '/vite-node/dist/',
// '/vite-node/src/',
// '/node_modules/chai/',
// '/node_modules/tinypool/',
// '/node_modules/tinyspy/',
// // browser related deps
// '/deps/chunk-',
// '/deps/@vitest',
// '/deps/loupe',
'node:internal',
/\/packages\/\w+\/dist\//,
/\/@vitest\/\w+\/dist\//,
'/vitest/dist/',
'/vitest/src/',
'/vite-node/dist/',
'/vite-node/src/',
'/node_modules/chai/',
'/node_modules/tinypool/',
'/node_modules/tinyspy/',
// browser related deps
'/deps/chunk-',
'/deps/@vitest',
'/deps/loupe',
'/deps/chai',
// /node:\w+/,
// /__vitest_test__/,
// /__vitest_browser__/,
// /\/deps\/vitest_/,
/node:\w+/,
/__vitest_test__/,
/__vitest_browser__/,
/\/deps\/vitest_/,
]

function extractLocation(urlLike: string) {
Expand Down
1 change: 1 addition & 0 deletions packages/vitest/src/node/cli/cli-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@ export const cliOptionsConfig: VitestCLIOptions = {
json: null,
provide: null,
filesOnly: null,
experimental: null,
}

export const benchCliOptionsConfig: Pick<
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.check.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"types": [
"node",
"vite/client"
]
],
"allowImportingTsExtensions": true
},
"exclude": [
"**/dist/**",
Expand Down

0 comments on commit 82df806

Please sign in to comment.