8000 ci: running some test cases with a local registry to better reflect real-world use cases by haoqunjiang · Pull Request #4193 · vuejs/vue-cli · GitHub
[go: up one dir, main page]

Skip to content

ci: running some test cases with a local registry to better reflect real-world use cases #4193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ci: run jest tests in an upper level directory
  • Loading branch information
haoqunjiang committed Jun 27, 2019
commit 20199b3d6fece9dc1f74c56ee928daa90e5a9880
15 changes: 14 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,19 @@ jobs:
steps:
- attach_workspace:
at: ~/
- run: yarn test -p unit-mocha,unit-jest,e2e-cypress
- run: yarn test -p unit-mocha,e2e-cypress
# e2e-nightwatch was left out due to some unknown issues with selenium and the CI image
- run: yarn test tsPluginE2e

tests-after-publish:
<<: *defaults
steps:
- attach_workspace:
at: ~/
- run: ./scripts/local-registry.sh
- run: yarn release --local-registry
- run: yarn test -p unit-jest

cli-ui:
<<: *defaults
steps:
Expand Down Expand Up @@ -96,6 +105,10 @@ workflows:
<<: *filters
requires:
- install
- tests-after-publish:
<<: *filters
requires:
- install
- cli-ui:
<<: *filters
requires:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
const path = require('path')
const createTestProject = require('@vue/cli-test-utils/createTestProject')

jest.setTimeout(20000)

const create = require('@vue/cli-test-utils/createTestProject')
const create = (name, preset) => {
return createTestProject(name, preset, path.resolve(__dirname, '../../../../tests'))
}

test('should work', async () => {
const project = await create('unit-jest', {
Expand Down
0