chore: Upgrade Cypress and docs on how to run tests

This commit is contained in:
Lokesh Dhakar
2019-05-25 19:18:34 -07:00
parent 7a4e672b8c
commit 20c33cc3bb
3 changed files with 208 additions and 253 deletions

View File

@@ -1,4 +1,11 @@
## How to make a release and deploy ## Running tests
Run Cypress integration tests in Chrome browser.
- `npm run dev` to start local server.
- `npm run test`
## Making a new release
- Update version number in `src/color-thief.js` and `package.json` - Update version number in `src/color-thief.js` and `package.json`
- Run `npm run build` - Run `npm run build`

448
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -29,14 +29,14 @@
], ],
"scripts": { "scripts": {
"build": "node ./build/build.js", "build": "node ./build/build.js",
"dev": "./node_modules/http-server/bin/http-server/", "dev": "./node_modules/http-server/bin/http-server",
"test": "./node_modules/.bin/cypress open" "test": "./node_modules/.bin/cypress open"
}, },
"main": "dist/color-thief.min.js", "main": "dist/color-thief.min.js",
"devDependencies": { "devDependencies": {
"@node-minify/core": "^4.0.5", "@node-minify/core": "^4.0.5",
"@node-minify/uglify-es": "^4.0.5", "@node-minify/uglify-es": "^4.0.5",
"cypress": "^3.2.0", "cypress": "^3.3.1",
"http-server": "^0.11.1" "http-server": "^0.11.1"
}, },
"engines": { "engines": {