Skip to content

Commit b5cacdf

Browse files
committed
rename the folder
1 parent 3b841ff commit b5cacdf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bin/asinit.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ if (/^(\.\.[/\\])*node_modules[/\\]assemblyscript[/\\]/.test(tsconfigBase)) {
100100
}
101101
const entryFile = path.join(assemblyDir, "index.ts");
102102
const buildDir = path.join(projectDir, "build");
103-
const testsDir = path.join(projectDir, "tests");
103+
const testsDir = path.join(projectDir, "test");
104104
const gitignoreFile = path.join(buildDir, ".gitignore");
105105
const packageFile = path.join(projectDir, "package.json");
106106

@@ -358,7 +358,7 @@ function ensurePackageJson() {
358358
"asbuild:debug": buildDebug,
359359
"asbuild:release": buildRelease,
360360
"asbuild": buildAll,
361-
"test": "node --test tests/**/*",
361+
"test": "node --test",
362362
"start": "npx serve ."
363363
},
364364
"devDependencies": {
@@ -390,7 +390,7 @@ function ensurePackageJson() {
390390
updated = true;
391391
}
392392
if (!scripts["test"] || scripts["test"] == npmDefaultTest) {
393-
scripts["test"] = "node --test tests/**/*";
393+
scripts["test"] = "node --test";
394394
pkg["scripts"] = scripts;
395395
updated = true;
396396
}
@@ -416,7 +416,7 @@ function ensurePackageJson() {
416416
}
417417

418418
function ensureTestsDirectory() {
419-
console.log("- Making sure that the 'tests' directory exists...");
419+
console.log("- Making sure that the 'test' directory exists...");
420420
if (!fs.existsSync(testsDir)) {
421421
fs.mkdirSync(testsDir);
422422
console.log(stdoutColors.green(" Created: ") + testsDir);
@@ -427,7 +427,7 @@ function ensureTestsDirectory() {
427427
}
428428

429429
function ensureTestsIndexJs() {
430-
console.log("- Making sure that 'tests/index.test.js' exists...");
430+
console.log("- Making sure that 'test/index.test.js' exists...");
431431
if (!fs.existsSync(testsIndexFile)) {
432432
fs.writeFileSync(testsIndexFile, [
433433
"import assert from \"node:assert\";",

0 commit comments

Comments
 (0)