Skip to content

Commit b17aa9e

Browse files
committed
refactor: reorganize tests
1 parent 176167d commit b17aa9e

24 files changed

+15
-17
lines changed

docs/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# `react-supabase` website
2-
31
```
42
yarn
53
yarn dev
File renamed without changes.

test/__snapshots__/use-auth-state-change.test.tsx.snap renamed to test/hooks/auth/__snapshots__/use-auth-state-change.test.tsx.snap

File renamed without changes.

test/__snapshots__/use-reset-password.test.tsx.snap renamed to test/hooks/auth/__snapshots__/use-reset-password.test.tsx.snap

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

test/use-auth-state-change.test.tsx renamed to test/hooks/auth/use-auth-state-change.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { renderHook } from '@testing-library/react-hooks'
22

3-
import { useAuthStateChange } from '../src'
3+
import { useAuthStateChange } from '../../../src'
44

55
describe('useAuthStateChange', () => {
66
it('should throw when not inside Provider', () => {

test/use-reset-password.test.tsx renamed to test/hooks/auth/use-reset-password.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { renderHook } from '@testing-library/react-hooks'
22

3-
import { useResetPassword } from '../src'
3+
import { useResetPassword } from '../../../src'
44

55
describe('useResetPassword', () => {
66
it('should throw when not inside Provider', () => {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { renderHook } from '@testing-library/react-hooks'
22

3-
import { useSignIn } from '../src'
3+
import { useSignIn } from '../../../src'
44

55
describe('useSignIn', () => {
66
it('should throw when not inside Provider', () => {

0 commit comments

Comments
 (0)