Skip to content

Commit 0e93f6f

Browse files
committed
feat: abstract login
1 parent 944f52e commit 0e93f6f

20 files changed

Lines changed: 122 additions & 11 deletions

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"build": "rollup -c",
2424
"test": "jest",
2525
"coverage": "npm test -- --coverage",
26-
"lint": "eslint ./src",
26+
"lint": "eslint ./src ./tests",
2727
"format": "prettier --write .",
2828
"prepare": "husky",
2929
"semantic-release": "semantic-release",

tests/AuthFallbackOptions.test.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright © 2026 Fells Code, LLC
3+
* Licensed under the GNU Affero General Public License v3.0
4+
* See LICENSE file in the project root for full license information
5+
*/
6+
17
import { render, screen, fireEvent } from '@testing-library/react';
28
import AuthFallbackOptions from '@/components/AuthFallbackOptions';
39

tests/AuthRoutes.test.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright © 2026 Fells Code, LLC
3+
* Licensed under the GNU Affero General Public License v3.0
4+
* See LICENSE file in the project root for full license information
5+
*/
6+
17
import { MemoryRouter } from 'react-router-dom';
28
import { render, screen } from '@testing-library/react';
39
import { AuthRoutes } from '../src/AuthRoutes';

tests/DeviceModal.test.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright © 2026 Fells Code, LLC
3+
* Licensed under the GNU Affero General Public License v3.0
4+
* See LICENSE file in the project root for full license information
5+
*/
6+
17
import { render, screen, fireEvent } from '@testing-library/react';
28
import DeviceNameModal from '@/components/DeviceNameModal';
39

tests/EmailRegistration.test.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright © 2026 Fells Code, LLC
3+
* Licensed under the GNU Affero General Public License v3.0
4+
* See LICENSE file in the project root for full license information
5+
*/
6+
17
import { render, screen, fireEvent, act, waitFor } from '@testing-library/react';
28
import EmailRegistration from '@/views/EmailRegistration';
39

tests/InternalContext.test.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright © 2026 Fells Code, LLC
3+
* Licensed under the GNU Affero General Public License v3.0
4+
* See LICENSE file in the project root for full license information
5+
*/
6+
17
import { render, screen } from '@testing-library/react';
28
import {
39
InternalAuthProvider,

tests/MagicLinkSent.test.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright © 2026 Fells Code, LLC
3+
* Licensed under the GNU Affero General Public License v3.0
4+
* See LICENSE file in the project root for full license information
5+
*/
6+
17
import { render, screen, fireEvent, act } from '@testing-library/react';
28
import MagicLinkSent from '@/components/MagicLinkSent';
39

tests/OtpInput.test.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright © 2026 Fells Code, LLC
3+
* Licensed under the GNU Affero General Public License v3.0
4+
* See LICENSE file in the project root for full license information
5+
*/
6+
17
import { render, screen, fireEvent } from '@testing-library/react';
28
import OtpInput from '@/components/OtpInput';
39

tests/PassKeyLogin.test.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright © 2026 Fells Code, LLC
3+
* Licensed under the GNU Affero General Public License v3.0
4+
* See LICENSE file in the project root for full license information
5+
*/
6+
17
import { render, screen, fireEvent, waitFor } from '@testing-library/react';
28
import PassKeyLogin from '../src/views/PassKeyLogin';
39

tests/PhoneInput.test.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
import { render, screen, fireEvent, waitFor } from '@testing-library/react';
1+
/*
2+
* Copyright © 2026 Fells Code, LLC
3+
* Licensed under the GNU Affero General Public License v3.0
4+
* See LICENSE file in the project root for full license information
5+
*/
6+
7+
import { render, screen, fireEvent } from '@testing-library/react';
28
import PhoneInputWithCountryCode from '@/components/phoneInput';
39

410
jest.mock('libphonenumber-js', () => ({

0 commit comments

Comments
 (0)