mirror of
https://github.com/soconnor0919/beenpad.git
synced 2026-02-05 00:06:40 -05:00
16 lines
365 B
JavaScript
16 lines
365 B
JavaScript
import { r as rpc } from './chunk-mocker.js';
|
|
|
|
class ModuleMockerServerInterceptor {
|
|
async register(module) {
|
|
await rpc("vitest:interceptor:register", module.toJSON());
|
|
}
|
|
async delete(id) {
|
|
await rpc("vitest:interceptor:delete", id);
|
|
}
|
|
async invalidate() {
|
|
await rpc("vitest:interceptor:invalidate");
|
|
}
|
|
}
|
|
|
|
export { ModuleMockerServerInterceptor as M };
|