Skip to content

Commit

Permalink
fix: unit tests with pretty-bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
tonai committed Oct 13, 2023
1 parent 9d226fd commit 964e0cf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 69 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`BitConverter matches snapshot 1`] = `
<div>
12,1 MB
</div>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exports[`Dropzone matches snapshot 1`] = `
>
<button
class="mantine-UnstyledButton-root mantine-ActionIcon-root mantine-w4fu6v"
title="add button"
title="Add button"
type="button"
>
<svg
Expand Down Expand Up @@ -61,22 +61,6 @@ exports[`Dropzone matches snapshot 1`] = `
aria-hidden="true"
class="mantine-gcifvd"
>
<button
class="mantine-UnstyledButton-root mantine-ActionIcon-root mantine-15zzi9h"
type="button"
>
<svg
fill="currentColor"
height="8"
viewBox="0 0 256 256"
width="8"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"
/>
</svg>
</button>
<span
class="mantine-1472iol"
>
Expand All @@ -89,29 +73,13 @@ exports[`Dropzone matches snapshot 1`] = `
<span
class="mantine-1472iol"
>
1.5 KiB
1,58 kB
</span>
</div>
<div
aria-hidden="true"
class="mantine-gcifvd"
>
<button
class="mantine-UnstyledButton-root mantine-ActionIcon-root mantine-15zzi9h"
type="button"
>
<svg
fill="currentColor"
height="8"
viewBox="0 0 256 256"
width="8"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"
/>
</svg>
</button>
<span
class="mantine-1472iol"
>
Expand All @@ -124,29 +92,13 @@ exports[`Dropzone matches snapshot 1`] = `
<span
class="mantine-1472iol"
>
1.5 KiB
1,58 kB
</span>
</div>
<div
aria-hidden="true"
class="mantine-gcifvd"
>
<button
class="mantine-UnstyledButton-root mantine-ActionIcon-root mantine-15zzi9h"
type="button"
>
<svg
fill="currentColor"
height="8"
viewBox="0 0 256 256"
width="8"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"
/>
</svg>
</button>
<span
class="mantine-1472iol"
>
Expand All @@ -159,29 +111,13 @@ exports[`Dropzone matches snapshot 1`] = `
<span
class="mantine-1472iol"
>
1.5 KiB
1,58 kB
</span>
</div>
<div
aria-hidden="true"
class="mantine-gcifvd"
>
<button
class="mantine-UnstyledButton-root mantine-ActionIcon-root mantine-15zzi9h"
type="button"
>
<svg
fill="currentColor"
height="8"
viewBox="0 0 256 256"
width="8"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"
/>
</svg>
</button>
<span
class="mantine-1472iol"
>
Expand All @@ -194,7 +130,7 @@ exports[`Dropzone matches snapshot 1`] = `
<span
class="mantine-1472iol"
>
1.5 KiB
1,58 kB
</span>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions packages/test/src/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { Config } from 'jest';
const config: Config = {
setupFilesAfterEnv: ['<rootDir>/../test/setupTests.ts'],
testEnvironment: 'jsdom',
transformIgnorePatterns: ['/node_modules/(?!(pretty-bytes)/)'],
};

export default config;

0 comments on commit 964e0cf

Please sign in to comment.