Skip to content

Commit

Permalink
add discovery-client
Browse files Browse the repository at this point in the history
  • Loading branch information
koji committed Mar 5, 2024
1 parent c3e6080 commit 1ebd2ce
Showing 1 changed file with 38 additions and 25 deletions.
63 changes: 38 additions & 25 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,42 @@ import path from 'path'
import { configDefaults, defineConfig, mergeConfig } from 'vitest/config'
import viteConfig from './vite.config'

export default mergeConfig(viteConfig, defineConfig({
test: {
environment: 'jsdom',
allowOnly: true,
exclude: [
...configDefaults.exclude,
'**/node_modules/**',
'**/dist/**'
],
setupFiles: ['./setup-vitest.js']
},
resolve: {
alias: {
'@opentrons/components/styles': path.resolve('./components/src/index.module.css'),
'@opentrons/components': path.resolve('./components/src/index.ts'),
'@opentrons/shared-data/pipette/fixtures/name': path.resolve('./shared-data/pipette/fixtures/name/index.ts'),
'@opentrons/shared-data/labware/fixtures/1': path.resolve('./shared-data/labware/fixtures/1/index.ts'),
'@opentrons/shared-data/labware/fixtures/2': path.resolve('./shared-data/labware/fixtures/2/index.ts'),
'@opentrons/shared-data': path.resolve('./shared-data/js/index.ts'),
'@opentrons/step-generation': path.resolve('./step-generation/src/index.ts'),
'@opentrons/api-client': path.resolve('./api-client/src/index.ts'),
'@opentrons/react-api-client': path.resolve( './react-api-client/src/index.ts'),
export default mergeConfig(
viteConfig,
defineConfig({
test: {
environment: 'jsdom',
allowOnly: true,
exclude: [...configDefaults.exclude, '**/node_modules/**', '**/dist/**'],
setupFiles: ['./setup-vitest.js'],
},
},
}))

resolve: {
alias: {
'@opentrons/components/styles': path.resolve(
'./components/src/index.module.css'
),
'@opentrons/components': path.resolve('./components/src/index.ts'),
'@opentrons/shared-data/pipette/fixtures/name': path.resolve(
'./shared-data/pipette/fixtures/name/index.ts'
),
'@opentrons/shared-data/labware/fixtures/1': path.resolve(
'./shared-data/labware/fixtures/1/index.ts'
),
'@opentrons/shared-data/labware/fixtures/2': path.resolve(
'./shared-data/labware/fixtures/2/index.ts'
),
'@opentrons/shared-data': path.resolve('./shared-data/js/index.ts'),
'@opentrons/step-generation': path.resolve(
'./step-generation/src/index.ts'
),
'@opentrons/api-client': path.resolve('./api-client/src/index.ts'),
'@opentrons/react-api-client': path.resolve(
'./react-api-client/src/index.ts'
),
'@opentrons/discovery-client': path.resolve(
'./discovery-client/src/index.ts'
),
},
},
})
)

0 comments on commit 1ebd2ce

Please sign in to comment.