Skip to content

Commit

Permalink
chore(devkit): fix failing devkit test for convertNxExecutor (nrwl#22398
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jaysoo authored and arekkubaczkowski committed Mar 19, 2024
1 parent ec27452 commit 5a3aa3f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/devkit/src/utils/convert-nx-executor.spec.ts
@@ -1,3 +1,9 @@
// When plugins from root nx.json load through ts-jest, they can cause transpile errors such as `@nx/playwright/plugin.d.ts` containing an unexpected "export" keyword.
// Mock `loadNxPlugins` function to prevent them from loading.
jest.mock('nx/src/utils/nx-plugin', () => ({
loadNxPlugins: () => Promise.resolve([]),
}));

import { convertNxExecutor } from './convert-nx-executor';

describe('Convert Nx Executor', () => {
Expand Down

0 comments on commit 5a3aa3f

Please sign in to comment.