@telstra/core
Version:
Telstra SDK Core
28 lines (26 loc) • 904 B
text/typescript
import path from 'path';
import tsconfigPaths from 'vite-tsconfig-paths';
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [tsconfigPaths()],
test: {
globals: true,
environment: 'node',
coverage: {
enabled: true,
reportOnFailure: true,
reporter: ['text', 'json', 'html'],
},
include: ['tests/**/*.test.ts'],
alias: {
'@auth': path.resolve(__dirname, './src/authentication'),
'@configuration': path.resolve(__dirname, 'src/configuration'),
'@constants': path.resolve(__dirname, 'src/constants'),
'@errors': path.resolve(__dirname, 'src/errors'),
'@http': path.resolve(__dirname, 'src/http'),
'@logging': path.resolve(__dirname, 'src/logging'),
'@storage': path.resolve(__dirname, 'src/utils/storage'),
'@telstra-types': path.resolve(__dirname, 'src/types'),
},
},
});