Skip to content

Commit 15983d8

Browse files
committed
fix(nx-plugin): fix lint
1 parent c2ec88c commit 15983d8

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

testing/test-nx-utils/src/lib/utils/nx-plugin.unit.test.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,22 @@ describe('createNodesContext', () => {
1111
workspaceRoot: 'root',
1212
nxJsonConfiguration: { plugins: [] },
1313
});
14-
expect(context).toEqual({
15-
workspaceRoot: 'root',
16-
nxJsonConfiguration: { plugins: [] },
17-
});
14+
expect(context).toStrictEqual(
15+
expect.objectContaining({
16+
workspaceRoot: 'root',
17+
nxJsonConfiguration: { plugins: [] },
18+
}),
19+
);
1820
});
1921

2022
it('should return a context with defaults', () => {
2123
const context = createNodesContext();
22-
expect(context).toEqual({
23-
workspaceRoot: process.cwd(),
24-
nxJsonConfiguration: {},
25-
});
24+
expect(context).toStrictEqual(
25+
expect.objectContaining({
26+
workspaceRoot: process.cwd(),
27+
nxJsonConfiguration: {},
28+
}),
29+
);
2630
});
2731
});
2832

0 commit comments

Comments
 (0)