wikiploy 2.2.4 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,7 @@
8
8
  // running tests as a task: keeps colors
9
9
  {
10
10
  "text": "test",
11
- "tooltip": "Run mocha tests.",
11
+ "tooltip": "Run tests.",
12
12
  "color": "lightgreen",
13
13
  "commandType": "palette",
14
14
  "command": "workbench.action.tasks.runTask|Run tests",
@@ -2,7 +2,7 @@
2
2
  "recommendations": [
3
3
  "gsppvo.vscode-commandbar",
4
4
  "hbenl.vscode-test-explorer",
5
- "hbenl.vscode-mocha-test-adapter",
5
+ // "hbenl.vscode-mocha-test-adapter",
6
6
  "xdebug.php-debug",
7
7
  "recca0120.vscode-phpunit"
8
8
  ]
@@ -7,7 +7,7 @@
7
7
  "group": "test",
8
8
  "problemMatcher": [],
9
9
  "label": "Run tests",
10
- "detail": "mocha"
10
+ "detail": "JS tests"
11
11
  },
12
12
  {
13
13
  "type": "npm",
package/DEV.md CHANGED
@@ -18,12 +18,11 @@ You might want to run `npm up` to update some scripts too.
18
18
  Recommended global modules/tools:
19
19
  ```bash
20
20
  npm install -g eslint
21
- npm install -g mocha
22
21
  ```
23
22
  You mostly need above if you will be using your shell (command line).
24
23
 
25
24
  ## Running tests
26
- To run tests in your shell you can use npm: `npm test`. Or just run `mocha`.
25
+ To run tests in your shell you can use npm: `npm test`.
27
26
 
28
27
  Better yet install [VSCode](https://code.visualstudio.com/download) and the recommended extenstions. It will make things easier (especially for debugging tests).
29
28
 
package/assets/test.css CHANGED
@@ -5,4 +5,4 @@
5
5
  .tavern {
6
6
  display: block;
7
7
  }
8
- /*## Wikiploy v2.2.4 with MWN v3.0.1 ##*/
8
+ /*## Wikiploy v2.3.0 with MWN v3.0.1 ##*/
package/assets/test.js CHANGED
@@ -7,4 +7,4 @@
7
7
  */
8
8
  // test.js
9
9
  console.log('test');
10
- /*## Wikiploy v2.2.4 with MWN v3.0.1 ##*/
10
+ /*## Wikiploy v2.3.0 with MWN v3.0.1 ##*/
package/check_up.php CHANGED
@@ -41,5 +41,5 @@ if (!isset($options['force']) && !$upChecker->hasChanges) {
41
41
  echo "\n[INFO] Update packages and locks\n";
42
42
  runner('npm up');
43
43
  echo "\n[INFO] Test\n";
44
- runner('npm test', 3);
44
+ runner('npm run test:run', 3);
45
45
  }
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "wikiploy",
3
- "version": "2.2.4",
3
+ "version": "2.3.0",
4
4
  "description": "User scripts and gadgets deployment for MediaWiki (Wikipedia).",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "bump": "bump patch",
9
- "test": "mocha"
9
+ "test:run": "vitest run",
10
+ "test": "vitest"
10
11
  },
11
12
  "repository": {
12
13
  "type": "git",
@@ -35,6 +36,6 @@
35
36
  "bump-version": "0.5.0",
36
37
  "chai": "6.x",
37
38
  "eslint": "9.x",
38
- "mocha": "11.x"
39
+ "vitest": "^4.1.0"
39
40
  }
40
41
  }
@@ -6,7 +6,7 @@ import DeployConfig from './DeployConfig.js';
6
6
 
7
7
  import { promises as fs } from "fs"; // node v11+
8
8
 
9
- const version = /*version:main:*/'2.2.4'/*:main:version*/;
9
+ const version = /*version:main:*/'2.3.0'/*:main:version*/;
10
10
 
11
11
  /**
12
12
  * MediaWiki deployment automation.
@@ -1,4 +1,4 @@
1
- /* global describe, it */
1
+ import { describe, it } from 'vitest'
2
2
  import { assert } from 'chai';
3
3
  import DeployConfig from '../src/DeployConfig.js';
4
4
 
@@ -1,4 +1,4 @@
1
- /* global describe, it */
1
+ import { describe, it } from 'vitest'
2
2
  import { assert } from 'chai';
3
3
  import { default as Wikiploy } from '../src/WikiployLite.js';
4
4
  import DeployConfig from '../src/DeployConfig.js';