Enzymeの動作サンプルです。create-react-appを使用して作成しました。
$ npm install
必要なパッケージをインストールします。
$ npm run start
ブラウザが起動し、http://localhost:3000を開きます。サンプルアプリケーションの動作が確認できます。
$ npm run test
testディレクトリ配下にある*.spec.jsが実行されます。
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Enzymeの動作サンプルです。create-react-appを使用して作成しました。
$ npm install
必要なパッケージをインストールします。
$ npm run start
ブラウザが起動し、http://localhost:3000を開きます。サンプルアプリケーションの動作が確認できます。
$ npm run test
testディレクトリ配下にある*.spec.jsが実行されます。