Skip to content

Commit 6d2d028

Browse files
committed
improve test setup
1 parent c26bfc2 commit 6d2d028

File tree

27 files changed

+110
-120
lines changed

27 files changed

+110
-120
lines changed

apps/events/tsconfig.app.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
{
22
"extends": "../../tsconfig.base.json",
3-
"references": [{ "path": "../../packages/graph-framework" }],
43
"compilerOptions": {
54
"target": "ES2020",
65
"useDefineForClassFields": true,
76
"lib": ["ES2020", "DOM", "DOM.Iterable"],
87
"module": "ESNext",
98
"skipLibCheck": true,
109

10+
"composite": false,
11+
"incremental": false,
12+
"declaration": false,
13+
"declarationMap": false,
14+
1115
/* Bundler mode */
1216
"moduleResolution": "bundler",
1317
"allowImportingTsExtensions": true,

apps/events/tsconfig.node.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
{
22
"extends": "../../tsconfig.base.json",
3-
"references": [{ "path": "../../packages/graph-framework" }],
43
"compilerOptions": {
54
"target": "ES2022",
65
"lib": ["ES2023"],
76
"module": "ESNext",
87
"skipLibCheck": true,
98

9+
"composite": false,
10+
"incremental": false,
11+
"declaration": false,
12+
"declarationMap": false,
13+
1014
/* Bundler mode */
1115
"moduleResolution": "bundler",
1216
"allowImportingTsExtensions": true,

apps/events/vite.config.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import path from 'node:path';
21
import { TanStackRouterVite } from '@tanstack/router-plugin/vite';
32
import react from '@vitejs/plugin-react';
3+
import path from 'node:path';
44
import { defineConfig } from 'vite';
55
import { nodePolyfills } from 'vite-plugin-node-polyfills';
66
import topLevelAwait from 'vite-plugin-top-level-await';
@@ -23,6 +23,13 @@ export default defineConfig({
2323
resolve: {
2424
alias: {
2525
'@': path.resolve(__dirname, './src'),
26+
'graph-framework': path.resolve(__dirname, '../../packages/graph-framework/src'),
27+
'graph-framework-space-events': path.resolve(__dirname, '../../packages/graph-framework-space-events/src'),
28+
'graph-framework-utils': path.resolve(__dirname, '../../packages/graph-framework-utils/src'),
29+
'graph-framework-schema': path.resolve(__dirname, '../../packages/graph-framework-schema/src'),
30+
'graph-framework-identity': path.resolve(__dirname, '../../packages/graph-framework-identity/src'),
31+
'graph-framework-key': path.resolve(__dirname, '../../packages/graph-framework-key/src'),
32+
'graph-framework-messages': path.resolve(__dirname, '../../packages/graph-framework-messages/src'),
2633
},
2734
},
2835
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"scripts": {
1515
"build": "pnpm --filter graph-framework-utils build",
1616
"ts:check": "pnpm -r ts:check",
17-
"test": "pnpm -r test",
17+
"test": "vitest",
1818
"lint": "pnpm -r lint",
1919
"format": "pnpm -r format",
2020
"check": "pnpm -r check"

packages/graph-framework-identity/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"exports": {
1717
".": {
18-
"default": "./src/index.js"
18+
"default": "./dist/index.js"
1919
}
2020
},
2121
"peerDependencies": {

packages/graph-framework-identity/vite.config.js

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { type UserConfigExport, mergeConfig } from 'vitest/config';
2+
import shared from '../../vitest.shared.js';
3+
4+
const config: UserConfigExport = {};
5+
6+
export default mergeConfig(shared, config);

packages/graph-framework-key/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"exports": {
77
".": {
8-
"default": "./src/index.js"
8+
"default": "./dist/index.js"
99
}
1010
},
1111
"scripts": {

packages/graph-framework-key/vite.config.mts

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { type UserConfigExport, mergeConfig } from 'vitest/config';
2+
import shared from '../../vitest.shared.js';
3+
4+
const config: UserConfigExport = {};
5+
6+
export default mergeConfig(shared, config);

0 commit comments

Comments
 (0)