Skip to content

Commit

Permalink
Add support win os (#165)
Browse files Browse the repository at this point in the history
support test:watch on windows
  • Loading branch information
Tzipi-kaltura committed Nov 1, 2023
1 parent 18c13d8 commit b3948e0
Show file tree
Hide file tree
Showing 4 changed files with 200 additions and 18 deletions.
2 changes: 1 addition & 1 deletion cypress/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
public/plugin.js
public/plugin/*
videos/*
screenshots/*
2 changes: 1 addition & 1 deletion cypress/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}
</style>
<script src='./ui-conf.js' type='text/javascript'></script>
<script src='./plugin.js' type='text/javascript'></script>
<script src='./plugin/playkit-transcript.js' type='text/javascript'></script>
</head>

<body>
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
"devDependencies": {
"@playkit-js/kaltura-player-js": "canary",
"conventional-github-releaser": "3.1.3",
"copyfiles": "^2.4.1",
"cross-env": "^7.0.3",
"css-loader": "^6.7.1",
"cypress": "^12.12.0",
"playwright-webkit": "^1.33.0",
"preact": "^10.4.1",
"prettier": "^2.6.2",
"rimraf": "^5.0.5",
"sass": "^1.54.3",
"sass-loader": "^12.6.0",
"standard-version": "^9.3.2",
Expand All @@ -36,7 +38,7 @@
"@playkit-js/kaltura-player-js": "canary"
},
"scripts": {
"clean": "rm -rf ./dist",
"clean": "rimraf ./dist",
"prebuild": "npm run clean",
"build": "webpack --mode production",
"dev": "webpack-dev-server --mode development",
Expand All @@ -47,7 +49,7 @@
"cy:run:firefox": "cypress run --browser firefox --config video=false",
"cy:run:edge": "cypress run --browser edge --config video=false",
"cy:run:safari": "cypress run --browser webkit --config video=false",
"test:prepare": "yarn run build && yes | cp -i ./dist/playkit-transcript.js ./cypress/public/plugin.js",
"test:prepare": "yarn run build && copyfiles -f ./dist/playkit-transcript.js ./cypress/public/plugin",
"test:watch": "yarn run test:prepare && cypress open",
"test": "yarn run test:prepare && yarn run cy:run",
"release": "standard-version",
Expand Down
Loading

0 comments on commit b3948e0

Please sign in to comment.