An attempt to load jwplayer with jsdom for testing with jest.
# Clone your fork of the repo into the current directory
git clone https://github.com/<your-username>/jwplayer-jest
# Navigate to the newly cloned directory
cd jwplayer-jest
# Assign the original repo to a remote called "upstream"
git remote add upstream https://github.com/barsh/jwplayer-jest
yarn install
# all tests
yarn test
# watch
yarn test --watch
You must be running Node v9.2.0 or higher.
-
Open repo folder in Visual Studio Code
-
Set a breakpoint or insert
debugger
command in./tests.ts
-
Press F5