9 lines
329 B
JavaScript
9 lines
329 B
JavaScript
import assert from "node:assert/strict";
|
|
import { readFile } from "node:fs/promises";
|
|
import test from "node:test";
|
|
|
|
test("rebuilds the Tauri app when frontend assets change", async () => {
|
|
const buildScript = await readFile("ui/src-tauri/build.rs", "utf8");
|
|
assert.match(buildScript, /cargo:rerun-if-changed=\.\.\/dist/);
|
|
});
|