0
0

More than 1 year has passed since last update.

【Node.js】Windows環境におけるCypressのIntegrationフォルダーの場所

Last updated at Posted at 2022-01-04

はじまり

CypressをWindows10にインストールした後、サンプルテストコードのファイル(.spec.js)があるintegrationフォルダーの場所を調べたら、Windowsに関する記事がすぐ見つからず探すのに時間が掛かったので(最終的にEverythingを使って見つけました・・・)、記事にしました。

Cypressをインストール

nodeのバージョンは16.3.1です。
以下で、インストールしました。

npm install cypress --save

Cypressを動作確認

Cypressをverifyして、

npx cypress verify

Cypressを実行確認しました。

npx cypress open

Where is integration folder?

動くことは確認できたので、最後にintegrationフォルダーの場所を確認します。
確認したら、ここにサンプルテストコードのファイルが置いてありました!

C:\Users\%USERNAME%\cypress\integration

おしまい

ここに自作のテストコードを置けば動くはず・・・

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0