mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-02 04:07:50 +08:00
parent
80335aa23c
commit
8108107779
2
.github/workflows/nocobase-test-backend.yml
vendored
2
.github/workflows/nocobase-test-backend.yml
vendored
@ -11,6 +11,7 @@ on:
|
||||
- 'packages/core/actions/**'
|
||||
- 'packages/core/database/**'
|
||||
- 'packages/core/server/**'
|
||||
- 'packages/core/utils/**'
|
||||
- 'packages/plugins/**/src/server/**'
|
||||
- '.github/workflows/nocobase-test-backend.yml'
|
||||
pull_request:
|
||||
@ -20,6 +21,7 @@ on:
|
||||
- 'packages/core/actions/**'
|
||||
- 'packages/core/database/**'
|
||||
- 'packages/core/server/**'
|
||||
- 'packages/core/utils/**'
|
||||
- 'packages/plugins/**/src/server/**'
|
||||
- '.github/workflows/nocobase-test-backend.yml'
|
||||
|
||||
|
@ -16,6 +16,10 @@ export function requireModule(m: any) {
|
||||
export default requireModule;
|
||||
|
||||
export async function importModule(m: string) {
|
||||
if (!process.env.VITEST) {
|
||||
return requireModule(m);
|
||||
}
|
||||
|
||||
if (path.isAbsolute(m)) {
|
||||
m = pathToFileURL(m).href;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user