fix(core, medusa-test-utils): Fix medusa test runner plugin modules loading (#12753)

This commit is contained in:
Adrien de Peretti
2025-06-17 19:43:31 +02:00
committed by GitHub
parent 5317f16d54
commit 9bdd5429af
2 changed files with 14 additions and 5 deletions

View File

@@ -37,10 +37,10 @@ export class Compiler {
this.#adminOnlyDistFolder = path.join(this.#projectRoot, ".medusa/admin")
this.#pluginsDistFolder = path.join(this.#projectRoot, ".medusa/server")
this.#backendIgnoreFiles = [
"integration-tests",
"test",
"unit-tests",
"src/admin",
"/integration-tests/",
"/test/",
"/unit-tests/",
"/src/admin/",
]
}
@@ -190,7 +190,7 @@ export class Compiler {
}> {
const ts = await this.#loadTSCompiler()
const filesToCompile = tsConfig.fileNames.filter((fileName) => {
return !chunksToIgnore.some((chunk) => fileName.includes(`${chunk}/`))
return !chunksToIgnore.some((chunk) => fileName.includes(`${chunk}`))
})
/**