mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-18 01:16:01 +00:00

* feat: team permission refine (#4402) * chore: team permission extend * feat: manage team permission * chore: api auth * fix: i18n * feat: add initv493 * fix: test, org auth manager * test: app test for refined permission * update init sh * fix: add/remove manage permission (#4427) * fix: add/remove manage permission * fix: github action fastgpt-test * fix: mock create model * fix: team write permission * fix: ts * account permission --------- Co-authored-by: Finley Ge <32237950+FinleyGe@users.noreply.github.com>
29 lines
798 B
TypeScript
29 lines
798 B
TypeScript
import { resolve } from 'path';
|
|
import { defineConfig } from 'vitest/config';
|
|
export default defineConfig({
|
|
test: {
|
|
coverage: {
|
|
enabled: true,
|
|
reporter: ['html', 'json-summary', 'json'],
|
|
reportOnFailure: true,
|
|
include: ['projects/**/*.ts', 'packages/**/*.ts'],
|
|
cleanOnRerun: false
|
|
},
|
|
outputFile: 'test-results.json',
|
|
setupFiles: 'test/setup.ts',
|
|
globalSetup: 'test/globalSetup.ts',
|
|
fileParallelism: false,
|
|
pool: 'threads',
|
|
include: ['test/test.ts', 'test/cases/**/*.test.ts', 'projects/app/test/**/*.test.ts'],
|
|
testTimeout: 5000,
|
|
reporters: ['github-actions', 'default']
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve('projects/app/src'),
|
|
'@fastgpt': resolve('packages'),
|
|
'@test': resolve('test')
|
|
}
|
|
}
|
|
});
|