Skip to content

Commit f36b33a

Browse files
committed
Update headless tests for 0.16.0
1 parent b51a56f commit f36b33a

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

Diff for: waspc/headless-test/examples/todoApp/todoApp.wasp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
app todoApp {
22
wasp: {
3-
version: "^0.15.0"
3+
version: "^0.16.0"
44
},
55
title: "ToDo App",
66
auth: {

Diff for: waspc/headless-test/examples/todoApp/tsconfig.json

+20-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
// =============================== IMPORTANT =================================
2+
// This file is mainly used for Wasp IDE support.
23
//
3-
// This file is only used for Wasp IDE support. You can change it to configure
4-
// your IDE checks, but none of these options will affect the TypeScript
5-
// compiler. Proper TS compiler configuration in Wasp is coming soon :)
4+
// Wasp will compile your code with slightly different (less strict) compilerOptions.
5+
// You can increase the configuration's strictness (e.g., by adding
6+
// "noUncheckedIndexedAccess": true), but you shouldn't reduce it (e.g., by
7+
// adding "strict": false). Just keep in mind that this will only affect your
8+
// IDE support, not the actual compilation.
9+
//
10+
// Full TypeScript configurability is coming very soon :)
611
{
712
"compilerOptions": {
813
"module": "esnext",
14+
// Needed because this is used as a project reference.
15+
"composite": true,
916
"target": "esnext",
1017
// We're bundling all code in the end so this is the most appropriate option,
1118
// it's also important for autocomplete to work properly.
@@ -20,6 +27,7 @@
2027
"dom.iterable",
2128
"esnext"
2229
],
30+
"skipLibCheck": true,
2331
"allowJs": true,
2432
"typeRoots": [
2533
// This is needed to properly support Vitest testing with jest-dom matchers.
@@ -32,10 +40,13 @@
3240
// Source 2: https://github.com/testing-library/jest-dom/issues/546#issuecomment-1889884843
3341
"node_modules/@types"
3442
],
35-
// Since this TS config is used only for IDE support and not for
36-
// compilation, the following directory doesn't exist. We need to specify
37-
// it to prevent this error:
38-
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
39-
"outDir": ".wasp/phantom"
40-
}
43+
"outDir": ".wasp/out/user",
44+
"paths" : {
45+
"@util": ["./src/util.js"],
46+
"@components/*": ["./src/components/*"],
47+
}
48+
},
49+
"include": [
50+
"src"
51+
]
4152
}

0 commit comments

Comments
 (0)