Warning, /firebird/packages/firebird-example-extension/vitest.config.ts is written in an unsupported language. File is not indexed.
0001 import { defineConfig } from 'vitest/config';
0002 import { resolve } from 'path';
0003
0004 export default defineConfig({
0005 resolve: {
0006 alias: {
0007 // Same one-copy-of-the-code rule as the app's tsconfig paths: resolve the
0008 // Firebird and dexvis packages to their sources.
0009 '@dexvis/threejs-tree-editor': resolve(__dirname, '../../dexvis/threejs-tree-editor/src/index.ts'),
0010 '@dexvis/root-geo-tree-editor': resolve(__dirname, '../../dexvis/root-geo-tree-editor/src/index.ts'),
0011 // The core subpaths first: an alias key also matches '<key>/...' imports
0012 '@dexvis/firebird-core/model': resolve(__dirname, '../firebird-core/src/model/index.ts'),
0013 '@dexvis/firebird-core': resolve(__dirname, '../firebird-core/src/index.ts'),
0014 },
0015 },
0016 test: {
0017 globals: true,
0018 environment: 'jsdom'
0019 }
0020 });