Skip to content

Commit

Permalink
000303 fix serve:test command and shortcut test
Browse files Browse the repository at this point in the history
  • Loading branch information
alireza-ab committed May 24, 2021
1 parent 1884c3f commit 224a666
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions cypress/integration/shortcut.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
/// <reference types="Cypress" />

import PersianDate from "@alireza-ab/persian-date";

const date = new PersianDate([2021, 3, 30, 12]);

beforeEach(() => {
cy.clock(new Date(2021, 2, 30, 12));
});
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
"main": "./dist/datepicker.common.js",
"unpkg": "./dist/datepicker.min.js",
"scripts": {
"serve": "webpack serve --hot --watch-content-base",
"serve": "webpack serve",
"build:prod": "cross-env NODE_ENV=production webpack",
"build:common": "cross-env NODE_ENV=common webpack",
"build:unpkg": "cross-env NODE_ENV=unpkg webpack",
"build:all": "npm run build:prod && npm run build:common && npm run build:unpkg",
"cy:open": "cypress open",
"cy:run": "cypress run",
"cy:run-parallel": "cypress run --parallel --ci-build-id GITHUB_TOKEN --record --key de25f7c7-0bd0-4651-8063-eca94dfd3591",
"serve:test": "cross-env NODE_ENV=test webpack-dev-server --hot --watch --port 8081",
"serve:test": "cross-env NODE_ENV=test webpack serve --port 8081",
"test": "npm run serve:test > /dev/null 2>&1 & npm run cy:run"
},
"homepage": "https://alireza-ab.ir/datepicker",
Expand Down

0 comments on commit 224a666

Please sign in to comment.