Proposal: change default snapshot filename (~breaking)
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 52/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- node.js
調査の方向性
Read the snapshot implementation linked as nodejs-loaders/…/test/snapshots.mjs and trace how the default filename is generated and existing files are read. The change is complete when new snapshots use the .snap.cjs name and the proposed handling of old .snapshot files is covered without breaking existing tests.
索引モデルが issue の本文から書いたものです。
説明
Problem(s) to solve
The current default value of a snapshot filename is to append .snapshot to the name of generating file (aka a "test file"). For instance foo.test.js → foo.test.js.snapshot.
This breaks any IDE trying to help with the file.
A snapshot file is actually a CJS file.
Proposed solution(s)
Adjust the default filename to ${TEST_FILE_BASENAME}.snap.cjs (see nodejs-loaders/…/test/snapshots.ts).
Ex foo.test.js → foo.test.snap.cjs
IDEs recognise this and render the snapshot file as the CJS that it actually is.
We can mitigate a breaking change by detecting the old on read and renaming the file on disk whilst also outputting a message to the console.
- 主要言語
- 言語のデータがありません
- スター
- 3
- フォーク
- 4
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nodejs/test-runner のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 1/100
nodejs/test-runner#46 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 5/100
nodejs/test-runner#45 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 10/100
nodejs/test-runner#44 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 15/100
nodejs/test-runner#43 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 15/100
nodejs/test-runner#42 ·
nodejs/test-runner の issue をすべて見る
似ている issue
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
r-afael/better-yt-recommendations#36 ·
メンテナーはふだん 1 日以内に返信
-
Run the dependency drift check対応中かも @spaceninja が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
cloudfour/lighthouse-parade#449 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: Four evaluation scripts unpack init_memmachine_params's five return values into three namesオープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
MemMachine/MemMachine#1911 ·
メンテナーはふだん 3 日以内に返信
-
friction
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
kentcdodds/kody#4753 ·
-
Re-saving a posting from a URL with "#app" or tracking parameters creates a duplicate saved jobオープンgood first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ritsth/job-autofill-extension#447 ·
メンテナーはふだん 2 日以内に返信