test(skill): preserve file system mock between cases
This commit is contained in:
@@ -31,7 +31,6 @@ function requireFresh<TModule>(modulePath: string): TModule {
|
|||||||
}
|
}
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
mock.restore()
|
|
||||||
clearRequireCache("../tools")
|
clearRequireCache("../tools")
|
||||||
clearRequireCache("../../../features/opencode-skill-loader/skill-content")
|
clearRequireCache("../../../features/opencode-skill-loader/skill-content")
|
||||||
clearRequireCache("../../slashcommand/command-discovery")
|
clearRequireCache("../../slashcommand/command-discovery")
|
||||||
|
|||||||
Reference in New Issue
Block a user