initial commit
This commit is contained in:
commit
88c14b627e
224 files changed
+17204
No files matched your search
@@ -0,0 +1 @@
|
||||
export { status } from "./model";
|
||||
@@ -0,0 +1 @@
|
||||
export const status = "available";
|
||||
@@ -0,0 +1 @@
|
||||
export { status } from "../../session";
|
||||
@@ -0,0 +1,3 @@
|
||||
import { status } from "../../session/model";
|
||||
|
||||
export const result = status;
|
||||
@@ -0,0 +1 @@
|
||||
export { status } from "./model";
|
||||
@@ -0,0 +1 @@
|
||||
export const status = "ready";
|
||||
@@ -0,0 +1,24 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { execPath } from "node:process";
|
||||
import { spawnSync } from "node:child_process";
|
||||
import { dirname, resolve } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const frontendRoot = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
||||
const eslintCli = resolve(frontendRoot, "node_modules/eslint/bin/eslint.js");
|
||||
const fixtures = [
|
||||
"scripts/fixtures/src/features/search/ui/search.ts",
|
||||
"scripts/fixtures/src/features/search/ui/entry.ts",
|
||||
];
|
||||
const result = spawnSync(execPath, [eslintCli, "--format", "json", ...fixtures], {
|
||||
cwd: frontendRoot,
|
||||
encoding: "utf8",
|
||||
});
|
||||
|
||||
assert.notEqual(result.status, 0, "ESLint accepted an import from a peer feature slice.");
|
||||
const reports = JSON.parse(result.stdout);
|
||||
assert.equal(reports.length, fixtures.length);
|
||||
for (const report of reports) {
|
||||
assert.equal(report.errorCount, 1);
|
||||
assert.equal(report.messages[0]?.ruleId, "boundaries/dependencies");
|
||||
}
|
||||
Reference in new issue
Block a user