mirror of
https://github.com/stablyai/orca.git
synced 2026-11-13 17:37:40 +00:00
* refactor(renderer): group workspace creation and launch owners * refactor(renderer): combine concrete workspace naming imports
17 lines
528 B
JavaScript
17 lines
528 B
JavaScript
import { TestRunner } from 'vitest'
|
|
|
|
export default class SharedWorkerSetupRunner extends TestRunner {
|
|
importFile(filepath, source) {
|
|
if (source === 'setup') {
|
|
// Warm transforms can key setup roots by a different URL than Vitest invalidates.
|
|
const modules = this.moduleRunner.evaluatedModules
|
|
for (const node of modules.getModulesByFile(filepath) ?? []) {
|
|
if (node.evaluated) {
|
|
modules.invalidateModule(node)
|
|
}
|
|
}
|
|
}
|
|
return super.importFile(filepath, source)
|
|
}
|
|
}
|