Skip to content

Commit b71d211

Browse files
committed
refactor: fix int tests 2
1 parent 3695d7d commit b71d211

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

packages/plugin-eslint/src/lib/eslint-plugin.int.test.ts

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,17 @@ describe('eslintPlugin', () => {
4646
});
4747

4848
// expect rule from extended base eslint.config.js
49-
expect(plugin.audits).toContainEqual(
50-
expect.objectContaining<Audit>({
51-
slug: expect.stringMatching(/^nx-enforce-module-boundaries/),
52-
title: expect.any(String),
53-
description: expect.stringContaining('sourceTag'),
54-
}),
55-
);
56-
// expect rule from nx-plugin project's eslint.config.js
57-
expect(plugin.audits).toContainEqual(
58-
expect.objectContaining<Partial<Audit>>({
59-
slug: 'nx-nx-plugin-checks',
60-
}),
49+
expect(plugin.audits).toStrictEqual(
50+
expect.arrayContaining([
51+
expect.objectContaining<Audit>({
52+
slug: expect.stringMatching(/^nx-enforce-module-boundaries/),
53+
title: expect.any(String),
54+
description: expect.stringContaining('sourceTag'),
55+
}),
56+
expect.objectContaining<Partial<Audit>>({
57+
slug: 'nx-nx-plugin-checks',
58+
}),
59+
]),
6160
);
6261
});
6362

0 commit comments

Comments
 (0)