Skip to content

Commit

Permalink
chore(misc): fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz committed Apr 4, 2023
1 parent d34b2fc commit 33fd91b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/angular/src/generators/init/init.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
jest.mock('@nx/devkit', () => ({
...jest.requireActual('@nrwl/devkit'),
...jest.requireActual('@nx/devkit'),
// need to mock so it doesn't resolve what the workspace has installed
// and be able to test with different versions
ensurePackage: jest.fn(),
Expand Down
4 changes: 2 additions & 2 deletions packages/devkit/src/utils/package-json.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,8 @@ describe('ensurePackage', () => {
it('should return package when present', async () => {
writeJson(tree, 'package.json', {});

expect(ensurePackage('@nrwl/devkit', '>=15.0.0')).toEqual(
require('@nrwl/devkit')
expect(ensurePackage('@nx/devkit', '>=15.0.0')).toEqual(
require('@nx/devkit')
); // return void
});
});
2 changes: 1 addition & 1 deletion packages/workspace/src/generators/library/schema.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// nx-ignore-next-line
const { Linter } = require('@nrwl/linter');
const { Linter } = require('@nx/linter');

export interface Schema {
name: string;
Expand Down

0 comments on commit 33fd91b

Please sign in to comment.