Skip to content

Commit

Permalink
chore: restore command tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry committed Jun 2, 2023
1 parent 647dbb5 commit 52c11ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 1 addition & 3 deletions libs/core/src/lib/command/index.spec.ts
Expand Up @@ -37,9 +37,7 @@ const initFixture = initFixtureFactory(__dirname);
// file under test
const { Command } = require("./index");

// TODO: figure out native hasher issue in CI with Nx 16.3.0+
// eslint-disable-next-line jest/no-disabled-tests
describe.skip("command", () => {
describe("command", () => {
let testDir: string;

beforeAll(async () => {
Expand Down
7 changes: 7 additions & 0 deletions libs/core/src/lib/test-helpers/create-project-graph.ts
@@ -1,3 +1,8 @@
// We always need fresh copies of the graph in the unit test fixtures
process.env.NX_DAEMON = "false";
process.env.NX_CACHE_PROJECT_GRAPH = "false";

import { fileHasher } from "nx/src/hasher/impl";
import { ProjectGraphDependency, ProjectGraphProjectNode } from "@nx/devkit";
import { Package, RawManifest } from "../package";
import {
Expand All @@ -6,6 +11,8 @@ import {
ProjectGraphWorkspacePackageDependency,
} from "../project-graph-with-packages";

fileHasher.clear();

export function projectNode(
projectNode: Partial<ProjectGraphProjectNode>,
pkg?: Partial<RawManifest>
Expand Down

0 comments on commit 52c11ed

Please sign in to comment.