Make async, and test both wasm and asm using jest
This commit is contained in:
@@ -7,29 +7,30 @@
|
||||
"type": "git",
|
||||
"url": "git@github.com:facebook/yoga.git"
|
||||
},
|
||||
"main": "./dist/index.asm.js",
|
||||
"exports": {
|
||||
".": {
|
||||
"default": "./dist/index.asm.js",
|
||||
"browser": "./dist/index.wasm.js",
|
||||
"node": "./dist/index.wasm.js",
|
||||
"react-native": "./dist/index.asm.js"
|
||||
"react-native": "./dist/index.asm.js",
|
||||
"default": "./dist/index.asm.js"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"is-monolithic": "test \"$(basename \"$(pwd)\")\" = javascript",
|
||||
"copy-sources": "! npm -s run is-monolithic || (rsync -r --checksum --delete ../yoga/ sources/yoga/)",
|
||||
"build": "npm run copy-sources && make && npm run build:js",
|
||||
"test": "time mocha --expose-gc -r tests/tools.js tests/Facebook.Yoga/**/*.js",
|
||||
"test": "yarn test:asm && yarn test:wasm",
|
||||
"test:asm": "jest",
|
||||
"test:wasm": "WASM=1 jest",
|
||||
"benchmark": "npm run build && node tests/run-bench $(find tests/Benchmarks -name '*.js')",
|
||||
"build:js": "babel sources --source-maps --out-dir dist && flow-copy-source sources dist"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.20.7",
|
||||
"@babel/core":"^7.20.7",
|
||||
"@babel/core": "^7.20.7",
|
||||
"@babel/plugin-transform-flow-strip-types": "^7.19.0",
|
||||
"@babel/preset-env": "^7.20.2",
|
||||
"flow-copy-source": "^2.0.7",
|
||||
"mocha": "^3.2.0"
|
||||
"jest": "^29.3.1"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user