Skip to content

Commit ec1d4f7

Browse files
committed
Convert to TypeScript
1 parent 84a2ee1 commit ec1d4f7

23 files changed

+738
-322
lines changed

index.html

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
src="https://js.sentry-cdn.com/ff7ad2773fc84f6694b683181248006a.min.js"
1616
crossorigin="anonymous"
1717
></script> -->
18-
<script src="https://cdnjs.cloudflare.com/ajax/libs/mobile-detect/1.4.5/mobile-detect.min.js"></script>
19-
<script src="https://unpkg.com/feather-icons"></script>
2018
<!-- Global site tag (gtag.js) - Google Analytics -->
2119
<script async src="https://www.googletagmanager.com/gtag/js?id=G-3QNNES1C4Y"></script>
2220
<script>
@@ -217,7 +215,7 @@ <h2>How to play</h2>
217215
If this persists, please reach out to me on <a href="https://github.com/Coteh/wordle-clone/issues/new?assignees=&labels=&template=bug_report.md" target="_blank">GitHub</a> or <a href="mailto:[email protected]" target="_blank">email</a> with more information and I'll take a look.
218216
</span>
219217
</template>
220-
<script src="src/index.js" type="module"></script>
218+
<script src="src/index.ts" type="module"></script>
221219
<script src="vendor/snow.js" defer></script>
222220
</body>
223221
</html>

jest.config.js

+16-15
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@
33
* https://jestjs.io/docs/configuration
44
*/
55

6-
/** @type {import('jest').Config} */
6+
/** @type {import('ts-jest').JestConfigWithTsJest} **/
77
export default {
8-
coverageProvider: "v8",
9-
reporters: [
10-
"default",
11-
[
12-
"jest-junit",
13-
{
14-
outputFile: "./results/unit-test-results.xml"
15-
}
16-
]
17-
],
18-
testMatch: [
19-
"**/test/**/*.[jt]s?(x)",
20-
],
21-
transform: {},
8+
coverageProvider: "v8",
9+
reporters: [
10+
"default",
11+
[
12+
"jest-junit",
13+
{
14+
outputFile: "./results/unit-test-results.xml",
15+
},
16+
],
17+
],
18+
testMatch: ["**/test/**/*.[jt]s?(x)"],
19+
testEnvironment: "node",
20+
transform: {
21+
"^.+.tsx?$": ["ts-jest", {}],
22+
},
2223
};

0 commit comments

Comments
 (0)