Skip to content

Commit 22e6019

Browse files
authored
Use WASM version of Lua instead of fengari for testing (#996)
* Use tstl/lua-wasm-bindings instead of fengari * Removed extra comma * Added missing semicolon * Fix an issue with Lua json encoder not detecting actual Lua Ininfity / NaN * Fixed test cases Most of the tests failed due to incorrect iteration order And unexpected JS/Lua differences * Removed fengari from lockfile * Revert NaN change * Removed unused import * Fixed small mistake * Change Lua vm version from 5.4 to 5.3 * Removed error filter comment and TODO
1 parent 0299d71 commit 22e6019

File tree

10 files changed

+78
-451
lines changed

10 files changed

+78
-451
lines changed

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
preset: "ts-jest",
1818
globals: {
1919
"ts-jest": {
20-
tsConfig: "<rootDir>/test/tsconfig.json",
20+
tsconfig: "<rootDir>/test/tsconfig.json",
2121
diagnostics: { warnOnly: !isCI },
2222
},
2323
},

package-lock.json

Lines changed: 19 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@
5656
"eslint": "^6.8.0",
5757
"eslint-plugin-import": "^2.20.1",
5858
"eslint-plugin-jest": "^23.8.2",
59-
"fengari": "^0.1.4",
6059
"fs-extra": "^8.1.0",
6160
"javascript-stringify": "^2.0.1",
6261
"jest": "^26.0.1",
6362
"jest-circus": "^25.1.0",
6463
"lua-types": "^2.8.0",
64+
"lua-wasm-bindings": "^0.1.4",
6565
"prettier": "^2.0.5",
6666
"ts-jest": "^26.3.0",
6767
"ts-node": "^8.6.2"

test/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"compilerOptions": {
44
"rootDir": "..",
55
"types": ["node", "jest"],
6-
"baseUrl": ".",
7-
"paths": { "*": ["types/*"] }
6+
"baseUrl": "."
87
},
98
"include": [".", "../src"],
109
"exclude": [

0 commit comments

Comments
 (0)