-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/charliewilco/reubin
- Loading branch information
Showing
22 changed files
with
4,043 additions
and
2,130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "@parcel/config-webextension" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,39 @@ | ||
{ | ||
"name": "@reubin/extension", | ||
"version": "1.2.1", | ||
"version": "1.2.3", | ||
"private": true, | ||
"scripts": { | ||
"dev": "parcel watch src/manifest.json --host localhost --config @parcel/config-webextension", | ||
"build": "parcel build src/manifest.json --no-source-maps --config @parcel/config-webextension", | ||
"dev": "parcel watch src/manifest.json --host localhost", | ||
"build": "parcel build src/manifest.json --no-source-maps", | ||
"test": "jest --verbose", | ||
"types": "tsc --noEmit --pretty" | ||
}, | ||
"dependencies": { | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"swr": "^2.0.3" | ||
"swr": "^2.0.4" | ||
}, | ||
"devDependencies": { | ||
"@tailwindcss/aspect-ratio": "^0.4.2", | ||
"@tailwindcss/forms": "^0.5.3", | ||
"@tailwindcss/typography": "^0.5.9", | ||
"@parcel/config-webextension": "^2.8.3", | ||
"@types/chrome": "^0.0.200", | ||
"@parcel/packager-webextension": "2.8.3", | ||
"@parcel/runtime-webextension": "2.8.3", | ||
"@parcel/transformer-webextension": "^2.8.3", | ||
"@types/chrome": "^0.0.219", | ||
"@types/react": "^18.0.27", | ||
"@types/react-dom": "^18.0.10", | ||
"lightningcss": "^1.18.0", | ||
"lightningcss": "^1.19.0", | ||
"parcel": "^2.8.3", | ||
"tailwindcss": "^3.2.4", | ||
"typescript": "^4.9.4", | ||
"tailwindcss": "^3.2.7", | ||
"typescript": "^4.9.5", | ||
"@testing-library/jest-dom": "^5.16.5", | ||
"@testing-library/react": "^13.4.0", | ||
"@testing-library/react": "^14.0.0", | ||
"@testing-library/user-event": "^14.4.3", | ||
"@types/jest": "^29.2.6", | ||
"jest": "^29.3.1", | ||
"jest-environment-jsdom": "^29.3.1", | ||
"@types/jest": "^29.4.0", | ||
"jest": "^29.4.3", | ||
"jest-environment-jsdom": "^29.4.3", | ||
"ts-jest": "^29.0.5" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/// <reference types="next" /> | ||
/// <reference types="next/image-types/global" /> | ||
/// <reference types="next/navigation-types/compat/navigation" /> | ||
|
||
// NOTE: This file should not be edited | ||
// see https://nextjs.org/docs/basic-features/typescript for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { render, screen } from "@testing-library/react"; | ||
import { render, screen, act } from "@testing-library/react"; | ||
import userEvent from "@testing-library/user-event"; | ||
import { graphql } from "msw"; | ||
import { setupServer } from "msw/node"; | ||
|
@@ -64,9 +64,10 @@ describe("Login", () => { | |
const emailInput = screen.getByTestId("login-email-input"); | ||
// const passwordInput = screen.getByTestId("login-password-input"); | ||
|
||
await userEvent.type(emailInput, "matt@"); | ||
|
||
await userEvent.tab(); | ||
await act(async () => { | ||
await userEvent.type(emailInput, "matt@"); | ||
await userEvent.tab(); | ||
}); | ||
|
||
expect(screen.getByText("Invalid email")).toBeInTheDocument(); | ||
expect(screen.getByRole("button")).toBeDisabled(); | ||
|
@@ -77,11 +78,11 @@ describe("Login", () => { | |
|
||
const emailInput = screen.getByTestId("login-email-input"); | ||
const passwordInput = screen.getByTestId("login-password-input"); | ||
await userEvent.type(emailInput, "[email protected]"); | ||
|
||
await userEvent.type(passwordInput, "P@ssw0rd"); | ||
|
||
await userEvent.click(screen.getByRole("button")); | ||
await act(async () => { | ||
await userEvent.type(emailInput, "[email protected]"); | ||
await userEvent.type(passwordInput, "P@ssw0rd"); | ||
await userEvent.click(screen.getByRole("button")); | ||
}); | ||
|
||
expect(loginHandler).toBeCalledWith({ | ||
email: "[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { render, screen } from "@testing-library/react"; | ||
import { act, render, screen } from "@testing-library/react"; | ||
import userEvent from "@testing-library/user-event"; | ||
import { graphql } from "msw"; | ||
import { setupServer } from "msw/node"; | ||
|
@@ -63,9 +63,10 @@ describe("Login", () => { | |
|
||
const emailInput = screen.getByTestId("register-email-input"); | ||
|
||
await userEvent.type(emailInput, "matt@"); | ||
|
||
await userEvent.tab(); | ||
await act(async () => { | ||
await userEvent.type(emailInput, "matt@"); | ||
await userEvent.tab(); | ||
}); | ||
|
||
expect(screen.getByText("Invalid email")).toBeInTheDocument(); | ||
expect(screen.getByRole("button")).toBeDisabled(); | ||
|
@@ -76,11 +77,12 @@ describe("Login", () => { | |
|
||
const emailInput = screen.getByTestId("register-email-input"); | ||
const passwordInput = screen.getByTestId("register-password-input"); | ||
await userEvent.type(emailInput, "[email protected]"); | ||
|
||
await userEvent.type(passwordInput, "P@ssw0rd"); | ||
|
||
await userEvent.click(screen.getByRole("button")); | ||
await act(async () => { | ||
await userEvent.type(emailInput, "[email protected]"); | ||
await userEvent.type(passwordInput, "P@ssw0rd"); | ||
await userEvent.click(screen.getByRole("button")); | ||
}); | ||
|
||
expect(registerUserHandler).toBeCalledWith({ | ||
email: "[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
16d2277
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
reubin – ./
reubin-hephaestus.vercel.app
pre-alpha.reubin.app
reubin-site.vercel.app
reubin-git-main-hephaestus.vercel.app
reubin.app
alpha.reubin.app