forked from saleor/apps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dev dependencies (saleor#845)
* update prettier and syncpack * update turbo * Update various dev deps * improve syncpack config * remove c8 reporter from invoices * fix test packages * Fix invocies test
- Loading branch information
1 parent
c2328cd
commit 4100369
Showing
20 changed files
with
1,305 additions
and
1,096 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,18 @@ | ||
--- | ||
"@saleor/react-hook-form-macaw": patch | ||
"eslint-config-saleor": patch | ||
"saleor-app-emails-and-messages": patch | ||
"saleor-app-data-importer": patch | ||
"saleor-app-products-feed": patch | ||
"@saleor/apps-shared": patch | ||
"saleor-app-invoices": patch | ||
"saleor-app-klaviyo": patch | ||
"saleor-app-cms-v2": patch | ||
"saleor-app-search": patch | ||
"@saleor/apps-ui": patch | ||
"saleor-app-slack": patch | ||
"saleor-app-taxes": patch | ||
"saleor-app-crm": patch | ||
--- | ||
|
||
Updated dependencies: vite, vitest, eslint, prettier, dotenv, turbo, syncpack, changesets, lint staged |
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
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
19 changes: 13 additions & 6 deletions
19
apps/invoices/src/modules/invoices/invoice-file-name/hash-invoice-filename.test.ts
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,16 +1,23 @@ | ||
import { describe, it, expect, vi } from "vitest"; | ||
import { hashInvoiceFilename } from "./hash-invoice-filename"; | ||
|
||
vi.mock("crypto", () => ({ | ||
randomUUID() { | ||
return "RANDOM_UUID_MOCK"; | ||
}, | ||
})); | ||
vi.mock("crypto", async () => { | ||
const actual = (await vi.importActual("crypto")) as Crypto; | ||
|
||
return { | ||
default: { | ||
...actual, | ||
randomUUID() { | ||
return "RANDOM_UUID_MOCK"; | ||
}, | ||
}, | ||
}; | ||
}); | ||
|
||
describe("hashInvoiceFilename", () => { | ||
it("Creates hashed invoice name", () => { | ||
expect(hashInvoiceFilename("1/12/2022", "1234-xxxx-zzzz-1234")).toBe( | ||
"1/12/2022_1234-xxxx-zzzz-1234_RANDOM_UUID_MOCK" | ||
"1/12/2022_1234-xxxx-zzzz-1234_RANDOM_UUID_MOCK", | ||
); | ||
}); | ||
}); |
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
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
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
Oops, something went wrong.