mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
test: load ci changed-scope script via esm import
This commit is contained in:
@@ -1,14 +1,5 @@
|
||||
import { createRequire } from "node:module";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
const require = createRequire(import.meta.url);
|
||||
const { detectChangedScope } = require("../../scripts/ci-changed-scope.mjs") as {
|
||||
detectChangedScope: (paths: string[]) => {
|
||||
runNode: boolean;
|
||||
runMacos: boolean;
|
||||
runAndroid: boolean;
|
||||
};
|
||||
};
|
||||
import { detectChangedScope } from "../../scripts/ci-changed-scope.mjs";
|
||||
|
||||
describe("detectChangedScope", () => {
|
||||
it("fails safe when no paths are provided", () => {
|
||||
|
||||
Reference in New Issue
Block a user