Skip to content

Commit

Permalink
Merge pull request #58 from Robert-M-Lucas/dev-add-package
Browse files Browse the repository at this point in the history
Added missing dev package, applied ESLint suggestions
  • Loading branch information
Robert-M-Lucas authored May 3, 2024
2 parents 68257a4 + a26474c commit 16c235e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
},
"devDependencies": {
"@faker-js/faker": "^8.4.1",
"@firebase/rules-unit-testing": "^3.0.2",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^15.0.5",
"@testing-library/user-event": "^14.5.2",
Expand Down
4 changes: 2 additions & 2 deletions src/components/transactions/CSVUpload.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const test = defaultTest.extend({ user: userEvent.setup() })
// mock the "writeNewTransactionsBatched" function to cirumvent firebase auth and rules
// its already been unit tested so we know it works
vi.mock("../../utils/transaction", async (importOriginal) => {
const mod: {} = await importOriginal();
const mod: NonNullable<unknown> = await importOriginal();
return {
...mod,
writeNewTransactionsBatched: vi.fn(),
Expand All @@ -29,7 +29,7 @@ vi.mock("../../utils/transaction", async (importOriginal) => {

// mock auth.currentUser to simulate a user being signed into website
vi.mock("../../utils/firebase", async (importOriginal) => {
const mod: {} = await importOriginal();
const mod: NonNullable<unknown> = await importOriginal();
return {
...mod,
auth: { currentUser: { uid: "100" } }
Expand Down

0 comments on commit 16c235e

Please sign in to comment.