Feature: useFocus
hook
#321
ci.yml
on: pull_request
lint
15s
check
24s
test
25s
build-docs
30s
build-package
27s
Annotations
6 errors
lint
Process completed with exit code 1.
|
src/lib/hooks/useFocus/index.test.ts > useFocus > default > changes the open state to `true` on focus:
node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js#L332
TestingLibraryElementError: Unable to find an element by: [data-testid="floating"]
Ignored nodes: comments, script, style
<body>
<div>
<button
data-testid="reference"
/>
</div>
</body>
❯ Object.getElementError node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:332:19
❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1196:25
❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1175:17
❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1218:19
❯ src/lib/hooks/useFocus/index.test.ts:15:11
|
src/lib/hooks/useFocus/index.test.ts > useFocus > default > changes the open state to `false` on blur:
node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js#L332
TestingLibraryElementError: Unable to find an element by: [data-testid="floating"]
Ignored nodes: comments, script, style
<body>
<div>
<button
data-testid="reference"
/>
</div>
</body>
❯ Object.getElementError node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:332:19
❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1196:25
❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1175:17
❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1218:19
❯ src/lib/hooks/useFocus/index.test.ts:25:18
|
src/lib/hooks/useFocus/index.test.ts > useFocus > enabled > does enable the hook when set to `true`:
node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js#L332
TestingLibraryElementError: Unable to find an element by: [data-testid="floating"]
Ignored nodes: comments, script, style
<body>
<div>
<button
data-testid="reference"
/>
</div>
</body>
❯ Object.getElementError node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:332:19
❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1196:25
❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1175:17
❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1218:19
❯ src/lib/hooks/useFocus/index.test.ts:43:18
|
src/lib/hooks/useFocus/index.test.ts > useFocus > visibleOnly > does change the open state to `true` on focus when set to `true`:
node_modules/.pnpm/@[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js#L332
TestingLibraryElementError: Unable to find an element by: [data-testid="floating"]
Ignored nodes: comments, script, style
<body>
<div>
<button
data-testid="reference"
/>
</div>
</body>
❯ Object.getElementError node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:332:19
❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1196:25
❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1175:17
❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1218:19
❯ src/lib/hooks/useFocus/index.test.ts:67:18
|
test
Process completed with exit code 1.
|