Skip to content

Commit 8a57c8a

Browse files
committed
chore: improve the tests by using vitest in browser mode instead of mocha and puppeteer
1 parent 4cec4aa commit 8a57c8a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+5237
-12885
lines changed

.editorconfig

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
root = true
66

77
[**]
8-
indent_style = space
9-
indent_size = 4
108
end_of_line = lf
119
charset = utf-8
1210
trim_trailing_whitespace = true

.vscode/extensions.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2-
"recommendations": ["dbaeumer.vscode-eslint", "biomejs.biome"]
2+
"recommendations": [
3+
"dbaeumer.vscode-eslint",
4+
"biomejs.biome",
5+
"vitest.explorer"
6+
]
37
}

.vscode/settings.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
"[javascript]": {
44
"editor.defaultFormatter": "biomejs.biome"
55
},
6+
"[typescript]": {
7+
"editor.defaultFormatter": "biomejs.biome"
8+
},
69
"files.eol": "\n",
710
"editor.codeActionsOnSave": {
8-
"source.fixAll": "explicit"
11+
"source.fixAll": "explicit",
12+
"quickfix.biome": "explicit"
913
}
1014
}

CONTRIBUTING.md

-4
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ To run the melonJS test suite simply use the following:
3636

3737
$ npm run test
3838

39-
This will run the jasmine spec tests with the output displayed on the shell. Do
40-
note that the latest Chrome version is required, as the test unit will run the
41-
Browser in a headless mode (in case of failed tests, upgrade your browser).
42-
4339
Last but not least, if you really want to contribute, but not sure how, you can
4440
always check our [discussions](https://github.com/melonjs/melonJS/discussions/categories/ideas) list to get some idea on where to start.
4541

eslint.config.mjs

+3-8
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@ export default [
77
{
88
name: "eslint/global-ignores",
99
// globally ignore below directories and files
10-
ignores: [
11-
"*.config.mjs",
12-
"dist/**/*",
13-
"build/**/*",
14-
"tests/**/*",
15-
"docs/**/*",
16-
],
10+
ignores: ["dist/**/*", "build/**/*", "docs/**/*", "rollup.config.mjs"],
1711
},
1812
{
1913
name: "eslint/global-rules",
@@ -24,7 +18,7 @@ export default [
2418
...globals.browser,
2519
},
2620
},
27-
files: ["src/**/*.js"],
21+
files: ["src/**/*.js", "tests/**/*.ts"],
2822
plugins: {
2923
jsdoc,
3024
"@stylistic": stylistic,
@@ -90,6 +84,7 @@ export default [
9084
"no-this-before-super": "error",
9185
"no-throw-literal": "off",
9286
"no-trailing-spaces": "error",
87+
"no-undef": "error",
9388
"no-undef-init": "error",
9489
"no-unmodified-loop-condition": "error",
9590
"no-unneeded-ternary": ["off", { defaultAssignment: false }],

0 commit comments

Comments
 (0)