fix(cypress): use wait for drag handlers

This commit is contained in:
moklick
2022-04-28 23:49:56 +02:00
parent ebf2a66639
commit 8a7bc49c79
7 changed files with 49 additions and 34 deletions
+5 -3
View File
@@ -26,11 +26,12 @@
"url": "https://github.com/wbkd/react-flow.git"
},
"scripts": {
"build": "rimraf dist && rollup -c --environment NODE_ENV:production && postcss src/*.css --dir dist",
"build": "rimraf dist && rollup -c --environment NODE_ENV:production && npm run css",
"build:test": "rimraf dist && rollup -c --environment NODE_ENV:test && npm run css",
"start": "rollup -w -c",
"start:examples": "cd example && npm start",
"build:examples": "cd example && npm run build",
"start:testserver": "npm run build && npm run start:examples",
"start:testserver": "npm run build:test && npm run start:examples",
"build:dev": "npm install && npm run build && cd example && npm install && npm run build",
"dev:wait": "start-server-and-test start:testserver http-get://localhost:3000",
"test": "BROWSER=none npm run dev:wait test:chrome",
@@ -41,7 +42,8 @@
"cy:open": "cypress open",
"release": "npm run test && release-it",
"release:notest": "release-it",
"release:next": "release-it --preRelease=next --no-git"
"release:next": "release-it --preRelease=next --no-git",
"css": "postcss src/*.css --dir dist"
},
"dependencies": {
"@babel/runtime": "^7.17.9",