Skip to content

E2E tests fail with PNPM #74

@sampullman

Description

@sampullman

The following results in failed tests and corruption of the repository:

git clone git@github.com:samatechtw/nx-vue3-vite
cd nx-vue3-vite
pnpm i
pnpm run e2e

Installing and running with npm instead of pnpm works as intended.

It was fixed by adding this to each E2E test:

  beforeEach(() => {
    ensureNxProject('nx-vue3-vite', 'dist/packages/vue3-vite');
  });

However, ensureNxProject fails with message Command failed: pnpm install --no-frozen-lockfile. It may be related to this issue. The current workaround is to use NPM in CI, which works fine. Locally, it is also possible to run tests directly, e.g. ./node_modules/.bin/nx e2e vue3-vite-e2e --test-file e2e/vue3-vite-e2e/tests/vue3-vite.spec.ts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions