Home / npm packages / @testing-library/react-hooks

@testing-library/react-hooks source code

Every file of @testing-library/react-hooks@8.0.1 as published on npm: 99 files, 138 KB. Search them by exact text or regex, in milliseconds.

It uses: process.env.

What @testing-library/react-hooks uses

APIIn @testing-library/react-hooks
eval()
runs a string as JavaScript
NoWho does
new Function()
builds a function from a string, like eval (with or without new)
NoWho does
child_process
starts other programs
NoWho does
process.env
reads environment variables
Yes: 10 files
e.g. lib/core/cleanup.js
See the lines
the fs module
reads and writes files
NoWho does
http / https
makes or serves HTTP requests with Node's own modules
NoWho does
fetch()
makes HTTP requests
NoWho does
XMLHttpRequest
makes HTTP requests the old browser way
NoWho does
crypto
hashes, encrypts or makes random numbers
NoWho does
WebAssembly
loads WebAssembly code
NoWho does
document.cookie
reads or writes browser cookies
NoWho does
install scripts
runs a script when it's installed
NoWho does

Exact matches in the published files, so a mention in a comment counts too: open the lines to check.

Largest files

FileSize
README.md33 KB
src/__tests__/asyncHook.test.ts7.3 KB
src/__tests__/errorHook.test.ts4.4 KB
src/__tests__/cleanup.test.ts4.4 KB
lib/server/pure.js4.0 KB
lib/dom/pure.js3.3 KB
src/__tests__/utils/runForRenderers.ts3.1 KB
package.json2.8 KB
lib/core/index.js2.7 KB
lib/helpers/createTestHarness.js2.5 KB
src/core/asyncUtils.ts2.5 KB
src/__tests__/useEffect.test.ts2.5 KB
src/__tests__/autoDetectRenderer.test.ts2.4 KB
lib/core/asyncUtils.js2.4 KB
src/__tests__/errorSuppression.test.ts2.4 KB
src/core/index.ts2.3 KB
lib/types/index.d.ts2.3 KB
lib/native/pure.js2.2 KB
src/types/index.ts2.2 KB
lib/pure.js2.0 KB
src/__tests__/resultHistory.test.ts1.9 KB
src/__tests__/suspenseHook.test.ts1.9 KB
src/__tests__/useContext.test.tsx1.8 KB
src/server/pure.ts1.8 KB
src/__tests__/useMemo.test.ts1.5 KB
lib/core/console.js1.4 KB
src/core/console.ts1.3 KB
src/__tests__/autoCleanup.test.ts1.3 KB
src/helpers/createTestHarness.tsx1.3 KB
src/pure.ts1.3 KB

Questions

How many files are in @testing-library/react-hooks?

Version 8.0.1 of @testing-library/react-hooks publishes 99 files of source, 138 KB in all, not counting images, fonts and source maps.

Does @testing-library/react-hooks use eval?

No: @testing-library/react-hooks doesn't call eval() anywhere in its published files.

Does @testing-library/react-hooks start other programs?

No: @testing-library/react-hooks doesn't use child_process anywhere in its published files.

Does @testing-library/react-hooks run an install script?

No: @testing-library/react-hooks has no preinstall, install or postinstall script in its package.json.

npm packages that use…

Every package we've indexed →

Search your own code like this

The same engine answers over your documents and repositories: exact text and regex, every match counted, from your code or your AI agent.

See StackGrep Engine