Package Exports
- @rbxts/jest-benchmark
- @rbxts/jest-benchmark/src/init.lua
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rbxts/jest-benchmark) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@rbxts/jest
TypeScript type definitions for Jest Lua.
npm package →
TypeScript type definitions for Jest Lua and roblox-ts, sourced from the official Jest types. Currently, jest and jest-globals are ported, while jest-benchmark is not yet available.
See the Jest Lua documentation for more information on how to use Jest Lua.
Setup
Install Jest and Jest Globals with your package manager of choice:
npm install @rbxts/jest @rbxts/jest-globals
yarn add @rbxts/jest @rbxts/jest-globals
pnpm add @rbxts/jest @rbxts/jest-globals # 🛑 See belowThen, add the following to your Rojo project file, under the node_modules folder:
"node_modules": {
"$className": "Folder",
"@rbxts": {
"$path": "node_modules/@rbxts"
},
"@rbxts-js": {
"$path": "node_modules/@rbxts-js"
}
}Usage with pnpm
If you're using pnpm as your package manager, you'll need to create a .npmrc file in the root of your project with the following content:
node-linker=hoistedLicense
This project is licensed under the MIT license.