mirror of
https://github.com/littensy/charm.git
synced 2026-10-21 19:54:09 +00:00
test: add benchmarks, dev mode
This commit is contained in:
parent
3548ca5c58
commit
4586882d3c
6 changed files with 95 additions and 11 deletions
11
src/__tests__/react/init.spec.luau
Normal file
11
src/__tests__/react/init.spec.luau
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
return function()
|
||||
local previous = _G.__DEV__
|
||||
|
||||
beforeAll(function()
|
||||
_G.__DEV__ = false -- prevent React errors
|
||||
end)
|
||||
|
||||
afterAll(function()
|
||||
_G.__DEV__ = previous
|
||||
end)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue