Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use vitest for integration tests (#1444)
* install vitest * add chrome flags for autoplay policy * add vitest import * change timeout config to be compatible with vitest API * fixup installation * upgrade package.json * change xit to supported api for vitest * use timeout api for vitest * WIP * delete deprecated tslint and add rule for type export * apply eslint fix for import type * add global variable to vitest config * remove webdriver lib from tsconfig * update memory test to be compliant with vitest API * update package script to run memory test wiht vitest * add missing import for vitest * remove chai from project and replace it by vitest assertion lib * try to upgrade node version in CI to fix bug * remove chai types * bump package version * add a vitest config * create a globalSetup for vitest * change to new timeout api * change require to import for raw and arraybuffer file * fix: enable browser mode * rename tests files to .test.js * update package.json scripts * lint * update CI to use npm script * Remove now unneeded dependencies * Re-add @vitest/browser * Remove notion of mocha chai and sinon from CONTRIBUTING.md, replacing it by vitest * Remove reliance on sinon for fake timers and stubs * parametrize test config so it can run on firefox * use cross-env for compatibility * delete useless files and lint * increase timeout for a flaky test * skip problematic test on firefox * fix * skip test * delete file globalSetup * PR feedback * specify the folder scenario for integration tests * rename files * make port param optional --------- Co-authored-by: Paul Berberian <[email protected]>
- Loading branch information