Skip to content

Commit

Permalink
Change location of test files to fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hwinther committed Jun 30, 2024
1 parent bb468c5 commit 8cbb704
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { render, screen } from '~test/testUtils'
import { expect, it } from 'vitest'

import { render, screen } from '~/test/testUtils'

import Page from '../+Page'
import Page from '~/pages/index/+Page'

it('renders welcome message', () => {
render(<Page />, { mockAuthContext: true, withQueryProvider: true })
Expand Down
File renamed without changes.
File renamed without changes.
10 changes: 6 additions & 4 deletions src/frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
"skipLibCheck": true,

/* Paths */
"baseUrl": "src",
"baseUrl": ".",
"paths": {
"~/*": ["*"],
"~components/*": ["components/*"]
"~/*": ["src/*"],
//"~components/*": ["src/components/*"],
//"~pages/*": ["src/pages/*"],
"~test/*": ["test/*"]
},

/* Bundler mode */
Expand All @@ -30,6 +32,6 @@
"strictNullChecks": true,
"allowJs": true
},
"include": ["src", "eslint.config.mjs", "orval.config.cjs"],
"include": ["src", "test", "eslint.config.mjs", "orval.config.cjs"],
"references": [{ "path": "./tsconfig.node.json" }]
}
6 changes: 4 additions & 2 deletions src/frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export default defineConfig({
resolve: {
alias: {
'~': '/src',
'~components': '/src/components',
//'~components': '/src/components',
//'~pages': '/src/pages',
'~test': '/test',
},
},
build: {
Expand All @@ -22,7 +24,7 @@ export default defineConfig({
test: {
globals: true,
environment: 'jsdom',
setupFiles: './src/test/setupTests.ts',
setupFiles: './test/setupTests.ts',
mockReset: true,
coverage: { enabled: true, provider: 'istanbul', reporter: ['cobertura', 'lcov', 'html'] },
reporters: ['verbose', 'github-actions', 'junit'],
Expand Down

0 comments on commit 8cbb704

Please sign in to comment.