@navikt/aksel 6.0.0 → 6.1.1
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.
|
@@ -40,9 +40,10 @@ const testUtils_1 = require("jscodeshift/dist/testUtils");
|
|
|
40
40
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
41
41
|
const node_path_1 = __importDefault(require("node:path"));
|
|
42
42
|
const prettier_1 = __importDefault(require("prettier"));
|
|
43
|
+
const vitest_1 = require("vitest");
|
|
43
44
|
function check(dirName, { fixture, migration, extension = "js", options = {} }) {
|
|
44
|
-
describe(migration, () => {
|
|
45
|
-
|
|
45
|
+
(0, vitest_1.describe)(migration, () => {
|
|
46
|
+
(0, vitest_1.test)(fixture, () => __awaiter(this, void 0, void 0, function* () {
|
|
46
47
|
const fixtureDir = node_path_1.default.join(dirName);
|
|
47
48
|
const inputPath = node_path_1.default.join(fixtureDir, `${fixture}.input.${extension}`);
|
|
48
49
|
const parser = extension;
|
|
@@ -54,7 +55,7 @@ function check(dirName, { fixture, migration, extension = "js", options = {} })
|
|
|
54
55
|
source,
|
|
55
56
|
});
|
|
56
57
|
// Format output and expected with prettier for white spaces and line breaks consistency
|
|
57
|
-
expect(yield prettier_1.default.format(output, {
|
|
58
|
+
(0, vitest_1.expect)(yield prettier_1.default.format(output, {
|
|
58
59
|
parser: parser === "js" ? "typescript" : parser,
|
|
59
60
|
})).toBe(yield prettier_1.default.format(expected, {
|
|
60
61
|
parser: parser === "js" ? "typescript" : parser,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/aksel",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "Aksel command line interface. Handles css-imports, codemods and more",
|
|
5
5
|
"author": "Aksel | NAV designsystem team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"clean": "rimraf dist",
|
|
19
19
|
"build": "yarn clean && tsc -p tsconfig.json",
|
|
20
20
|
"dev": "tsc --watch -p tsconfig.json",
|
|
21
|
-
"test": "
|
|
22
|
-
"test:watch": "
|
|
21
|
+
"test": "vitest run",
|
|
22
|
+
"test:watch": "vitest watch"
|
|
23
23
|
},
|
|
24
24
|
"bin": "./dist/index.js",
|
|
25
25
|
"repository": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"homepage": "https://aksel.nav.no/grunnleggende/kode/kommandolinje",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@navikt/ds-css": "6.
|
|
32
|
+
"@navikt/ds-css": "6.1.1",
|
|
33
33
|
"axios": "1.6.0",
|
|
34
34
|
"chalk": "4.1.0",
|
|
35
35
|
"clipboardy": "^2.3.0",
|
|
@@ -44,12 +44,9 @@
|
|
|
44
44
|
"react-scanner": "^1.1.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@types/inquirer": "^9.0.3",
|
|
48
|
-
"@types/jest": "^29.0.0",
|
|
49
|
-
"jest": "^29.0.0",
|
|
50
47
|
"rimraf": "3.0.2",
|
|
51
|
-
"
|
|
52
|
-
"
|
|
48
|
+
"typescript": "^5.1.6",
|
|
49
|
+
"vitest": "^1.2.2"
|
|
53
50
|
},
|
|
54
51
|
"sideEffects": false,
|
|
55
52
|
"engines": {
|