Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3dd4c2d

Browse files
fs.test.ts: Improve readbility, add types to fix TS problems (#1482)
* more readable const names instead of index number ([2] etc)* verify fs method name exists in Base.prototype (fixes type problem)* use Data type from ejs. Must include ejs package explicitly* use SinonStub type* ts-expect-error for spyOn type; comment re: why not use sinonStub for get config ?* types for op. results, paths; put op results into var so it can be typed as FSOpResult[]* add missing help: to new generator options* removed unneeded eslint disable
1 parent8d95ae0 commit3dd4c2d

File tree

4 files changed

+137
-107
lines changed

4 files changed

+137
-107
lines changed

‎package-lock.json‎

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
},
7272
"devDependencies": {
7373
"@types/debug":"^4.1.9",
74+
"@types/ejs":"^3.1.4",
7475
"@types/inquirer":"^9.0.4",
7576
"@types/minimist":"^1.2.3",
7677
"@types/semver":"^7.5.3",
@@ -80,6 +81,7 @@
8081
"@yeoman/transform":"^1.2.0",
8182
"c8":"^8.0.1",
8283
"cpy-cli":"^5.0.0",
84+
"ejs":"^3.1.9",
8385
"esmocha":"^1.0.1",
8486
"inquirer":"^9.2.11",
8587
"jsdoc":"^4.0.2",

‎src/actions/fs.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint max-params: [1, 5] */
22
importassertfrom'node:assert';
33
import{typeCopyOptions,typeMemFsEditor}from'mem-fs-editor';
4-
// eslint-disable-next-line import/no-extraneous-dependencies
54
importtype{DataasTemplateData,OptionsasTemplateOptions}from'ejs';
65
importtype{OverloadParameters,OverloadReturnType}from'../types-utils.js';
76
importtypeBaseGeneratorfrom'../generator.js';

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp