Skip to content

Commit

Permalink
test: update vitest workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
DerYeger committed Nov 5, 2024
1 parent e026e20 commit 66c93e5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"typecheck": "nr turbo run check:tsc",
"update": "taze major -l -r -w --exclude million",
"version": "changeset version && pnpm install --no-frozen-lockfile",
"vitest": "vitest --coverage",
"watch": "pnpm turbo watch"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import fixture from './fixture.json'

describe('cli formatter action handler', () => {
it('formats feature metadata', () => {
const fileContent = readFileSync('test/fixture.json', 'utf8')
const fileContent = readFileSync(`${import.meta.dirname}/fixture.json`, 'utf8')
const result = getFeatureMetadataFromFile(fileContent, 'nodeFeatures')
expect(result).toEqual(JSON.stringify(fixture.metadata.nodeFeatures))
})
Expand Down
8 changes: 7 additions & 1 deletion vitest.workspace.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
import { defineWorkspace } from 'vitest/config'

export default defineWorkspace(['packages/**/*'])
export default defineWorkspace([
'packages/encoders/*/vite.config.ts',
'packages/framework/*/vite.config.ts',
'packages/languages/*/vite.config.ts',
'packages/pattern-mining/*/vite.config.ts',
'packages/utils/vite.config.ts',
])

0 comments on commit 66c93e5

Please sign in to comment.