(target: tstl.LuaTarget)
| 18 | } |
| 19 | |
| 20 | function jsonLib(target: tstl.LuaTarget): string { |
| 21 | const fileName = target === tstl.LuaTarget.Lua50 ? "json.50.lua" : "json.lua"; |
| 22 | return fs.readFileSync(path.join(__dirname, fileName), "utf8"); |
| 23 | } |
| 24 | |
| 25 | // Using `test` directly makes eslint-plugin-jest consider this file as a test |
| 26 | const defineTest = test; |