-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(vite): load the correct config file from @nx/vite:test executor
- Loading branch information
Showing
4 changed files
with
50 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { cleanupProject, newProject, runCLI, uniq } from '@nx/e2e/utils'; | ||
|
||
describe('Vue Plugin (legacy)', () => { | ||
let proj: string; | ||
|
||
beforeAll(() => { | ||
proj = newProject({ | ||
packages: ['@nx/vue'], | ||
unsetProjectNameAndRootFormat: false, | ||
}); | ||
}); | ||
|
||
afterAll(() => cleanupProject()); | ||
|
||
it('should serve application in dev mode', async () => { | ||
const app = uniq('app'); | ||
|
||
runCLI( | ||
`generate @nx/vue:app ${app} --unitTestRunner=vitest --e2eTestRunner=playwright`, | ||
{ env: { NX_ADD_PLUGINS: 'false' } } | ||
); | ||
let result = runCLI(`test ${app}`); | ||
expect(result).toContain(`Successfully ran target test for project ${app}`); | ||
|
||
result = runCLI(`build ${app}`); | ||
expect(result).toContain( | ||
`Successfully ran target build for project ${app}` | ||
); | ||
}, 200_000); | ||
|
||
it('should build library', async () => { | ||
const lib = uniq('lib'); | ||
|
||
runCLI( | ||
`generate @nx/vue:lib ${lib} --bundler=vite --unitTestRunner=vitest`, | ||
|
||
{ env: { NX_ADD_PLUGINS: 'false' } } | ||
); | ||
|
||
const result = runCLI(`build ${lib}`); | ||
expect(result).toContain( | ||
`Successfully ran target build for project ${lib}` | ||
); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters