Skip to content

Commit b8ebfb6

Browse files
authored
bumping node orb to enable pnpm (#485)
* bumping node orb to enable pnpm * Adding pnpm test
1 parent fab347f commit b8ebfb6

File tree

6 files changed

+1359
-1
lines changed

6 files changed

+1359
-1
lines changed

.circleci/test-deploy.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ workflows:
8383
cypress-cache-key: cypress-cache{{ arch }}-{{ checksum "examples/yarn-install/package.json" }}
8484
post-install: "npx cypress install"
8585
package-manager: "yarn"
86+
- cypress/run:
87+
filters: *filters
88+
name: Pnpm Example
89+
working-directory: examples/pnpm-install
90+
cypress-cache-key: cypress-cache{{ arch }}-{{ checksum "examples/pnpm-install/package.json" }}
91+
post-install: "pnpm dlx cypress install"
92+
package-manager: "pnpm"
8693
- cypress/run:
8794
filters: *filters
8895
name: Custom Install Example
@@ -143,6 +150,7 @@ workflows:
143150
- Standard Npm Example
144151
- Custom Node Version Example
145152
- Yarn Example
153+
- Pnpm Example
146154
- Custom Install Example
147155
- Wait On Example
148156
- Angular Application
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const { defineConfig } = require('cypress')
2+
3+
module.exports = defineConfig({
4+
fixturesFolder: false,
5+
e2e: {
6+
supportFile: false,
7+
video: false
8+
},
9+
})
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
it('works', () => {
2+
expect(42).to.equal(21 + 21)
3+
cy.visit('https://example.cypress.io').then(() => {
4+
expect('hello').to.equal('hello')
5+
})
6+
})

examples/pnpm-install/package.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "pnpm-install-project",
3+
"version": "1.0.0",
4+
"description": "basic example how to run Cypress tests with pnpm",
5+
"scripts": {
6+
"test": "cypress run"
7+
},
8+
"author": "",
9+
"private": true,
10+
"devDependencies": {
11+
"cypress": "^13.13.0"
12+
}
13+
}

0 commit comments

Comments
 (0)