Skip to content

Commit

Permalink
chore: inline vitest utils
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Mar 20, 2023
1 parent c1759ba commit d63b490
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/snapshot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
"prepublishOnly": "pnpm build"
},
"dependencies": {
"@vitest/utils": "workspace:*",
"magic-string": "^0.27.0",
"pathe": "^1.1.0",
"pretty-format": "^27.5.1"
},
"devDependencies": {
"@vitest/utils": "workspace:*",
"@types/natural-compare": "^1.4.1",
"natural-compare": "^1.4.0"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/src/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const string = (str: unknown) => String(str)
string.open = ''
string.close = ''

const defaultColors = colorsEntries.reduce((acc, [key]) => {
const defaultColors = /* #__PURE__ */ colorsEntries.reduce((acc, [key]) => {
acc[key as ColorName] = string
return acc
}, { isColorSupported: false } as Colors)
Expand Down
2 changes: 2 additions & 0 deletions packages/ws-client/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ const external = [
'node:fs',
'vitest',
'inspector',
'@vitest/snapshot/environment',
'@vitest/snapshot/manager',
]

export default () => [
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d63b490

Please sign in to comment.