test configuration in orchestrator
This commit is contained in:
parent
18f4a166f7
commit
c7e78226fc
1071
orchestrator/package-lock.json
generated
1071
orchestrator/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -15,7 +15,9 @@
|
||||
"db:migrate": "tsx src/server/db/migrate.ts",
|
||||
"db:clear": "tsx src/server/db/clear.ts",
|
||||
"db:drop": "tsx src/server/db/clear.ts --drop",
|
||||
"pipeline:run": "tsx src/server/pipeline/run.ts"
|
||||
"pipeline:run": "tsx src/server/pipeline/run.ts",
|
||||
"test": "vitest",
|
||||
"test:run": "vitest run"
|
||||
},
|
||||
"dependencies": {
|
||||
"@radix-ui/react-accordion": "^1.2.12",
|
||||
@ -45,6 +47,8 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/postcss": "^4.1.18",
|
||||
"@testing-library/jest-dom": "^6.9.1",
|
||||
"@testing-library/react": "^16.3.1",
|
||||
"@types/better-sqlite3": "^7.6.8",
|
||||
"@types/cors": "^2.8.17",
|
||||
"@types/express": "^4.17.21",
|
||||
@ -55,6 +59,7 @@
|
||||
"autoprefixer": "^10.4.22",
|
||||
"concurrently": "^9.1.0",
|
||||
"drizzle-kit": "^0.30.1",
|
||||
"jsdom": "^25.0.1",
|
||||
"postcss": "^8.5.6",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
@ -62,6 +67,7 @@
|
||||
"tailwindcss": "^4.1.18",
|
||||
"tsx": "^4.19.2",
|
||||
"typescript": "^5.7.2",
|
||||
"vite": "^6.0.3"
|
||||
"vite": "^6.0.3",
|
||||
"vitest": "^4.0.16"
|
||||
}
|
||||
}
|
||||
|
||||
7
orchestrator/src/basic.test.ts
Normal file
7
orchestrator/src/basic.test.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
|
||||
describe('Basic Test', () => {
|
||||
it('should pass', () => {
|
||||
expect(1 + 1).toBe(2);
|
||||
});
|
||||
});
|
||||
5
orchestrator/src/setupTests.ts
Normal file
5
orchestrator/src/setupTests.ts
Normal file
@ -0,0 +1,5 @@
|
||||
// jest-dom adds custom jest matchers for asserting on DOM nodes.
|
||||
// allows you to do things like:
|
||||
// expect(element).toHaveTextContent(/react/i)
|
||||
// learn more: https://github.com/testing-library/jest-dom
|
||||
import '@testing-library/jest-dom';
|
||||
@ -1,9 +1,15 @@
|
||||
/// <reference types="vitest" />
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import path from 'path';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
test: {
|
||||
globals: true,
|
||||
environment: 'jsdom',
|
||||
setupFiles: './src/setupTests.ts',
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user