Skip to content

Commit 2a60d07

Browse files
AirLorenodelcroiAirloren
authored
Code refactoring & add permalink share (#46)
* refactor components to clean data explorer (#41) * move var to upper components * remove unecessary vars * move datagrid components to proper folder * move chart components to proper folder * move chart components to proper folder * fix imports * export buttons to components * rename grid components * remove grid headers bindings * remove duplicates * add ui tests for locale switch * add jest configuration * unniformize method name * change svelte to sveltekit * add types * Refactor update impacts (#43) * add reactivity * simplify locale switch * fix * add logs * fix lifetime * fix headers column * revvert * revert * Generate link (#44) * add generate link button * add type * add unit tests * add parsing * add generate link button * add type * add unit tests * add parsing * add build link flatfiltermodel * fix playwright * add copy to clipboard button * cleansig * cleansing * fix style * add message when sharing is not available * fix version * fix language button * fix lifetime does not update * manage single item share link * cleanup refactoring * add comment for translation timing workaround * add unit test * use next version of sveltekit * fix share link button color * remove unnecessary calls * adjust Share text position and weight * fix Infinite loop in jpeg-js Co-authored-by: Olivier D <[email protected]> Co-authored-by: Airloren <[email protected]>
1 parent 0a8591a commit 2a60d07

33 files changed

+1237
-9957
lines changed

jest-setup.ts

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
//import "@testing-library/jest-dom";
2+
export {}

jest.config.cjs

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
transform: {
3+
"^.+\\.svelte$": [
4+
"svelte-jester",
5+
{ preprocess: "./svelte.config.test.cjs" },
6+
],
7+
"^.+\\.ts$": "ts-jest",
8+
"^.+\\.js$": "ts-jest",
9+
},
10+
moduleFileExtensions: ["js", "ts", "svelte"],
11+
moduleNameMapper: {
12+
"^\\$lib(.*)$": "<rootDir>/src/lib$1",
13+
"^\\$app(.*)$": [
14+
"<rootDir>/.svelte-kit/dev/runtime/app$1",
15+
"<rootDir>/.svelte-kit/build/runtime/app$1",
16+
],
17+
},
18+
setupFilesAfterEnv: ["<rootDir>/jest-setup.ts"],
19+
collectCoverageFrom: ["src/**/*.{ts,tsx,svelte,js,jsx}"],
20+
};

0 commit comments

Comments
 (0)