Add tests
This commit is contained in:
@@ -2,18 +2,25 @@
|
||||
"name": "@ffmpeg/ffmpeg",
|
||||
"version": "0.11.5",
|
||||
"description": "FFmpeg WebAssembly version",
|
||||
"main": "./dist/ffmpeg.cjs",
|
||||
"main": "./dist/commonjs/ffmpeg.js",
|
||||
"types": "./types/ffmpeg.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./types/ffmpeg.d.ts",
|
||||
"import": "./dist/ffmpeg.js",
|
||||
"require": "./dist/ffmpeg.cjs"
|
||||
"import": "./dist/esm/ffmpeg.js",
|
||||
"require": "./dist/commonjs/ffmpeg.js"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest"
|
||||
"lint": "eslint tests types",
|
||||
"test": "npm run test:browser && npm run test:node",
|
||||
"test:node": "mocha --exit --bail --require tests/test-helper.js tests/ffmpeg.test.js",
|
||||
"test:browser": "mocha-headless-chrome -a allow-file-access-from-files -f tests/ffmpeg.test.html"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"types/ffmpeg.d.ts"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/ffmpegwasm/ffmpeg.wasm.git"
|
||||
@@ -31,19 +38,19 @@
|
||||
"url": "https://github.com/ffmpegwasm/ffmpeg.wasm/issues"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12.16.1"
|
||||
"node": ">=16.6.0"
|
||||
},
|
||||
"homepage": "https://github.com/ffmpegwasm/ffmpeg.wasm#readme",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^29.0.2",
|
||||
"@typescript-eslint/eslint-plugin": "^5.37.0",
|
||||
"@typescript-eslint/parser": "^5.37.0",
|
||||
"chai": "^4.3.6",
|
||||
"eslint": "^8.23.1",
|
||||
"jest-puppeteer": "^6.1.1",
|
||||
"ts-jest": "^29.0.1",
|
||||
"mocha": "^10.0.0",
|
||||
"mocha-headless-chrome": "^4.0.0",
|
||||
"typescript": "^4.8.3"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user