回答編集履歴
1
誤字修正
answer
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
RequireContextHookを使えるようにします。
|
2
2
|
```
|
3
3
|
diff --git a/Storyshots.test.js b/Storyshots.test.js
|
4
4
|
index b5a8d71..f1d4528 100644
|
@@ -13,7 +13,7 @@
|
|
13
13
|
+registerRequireContextHook();
|
14
14
|
+initStoryshots();
|
15
15
|
```
|
16
|
-
テスト実行時のbabelの設定を書きます
|
16
|
+
テスト実行時のbabelの設定を書きます。
|
17
17
|
```
|
18
18
|
diff --git a/babel.config.js b/babel.config.js
|
19
19
|
new file mode 100644
|
@@ -58,7 +58,7 @@
|
|
58
58
|
+};
|
59
59
|
```
|
60
60
|
|
61
|
-
ログです。
|
61
|
+
ログです。コンポーネントのエラー出てますが、対象の問題は解決してます。
|
62
62
|
```
|
63
63
|
~/work/storybook-nuxt-test teratail 5m 50s
|
64
64
|
❯ ./node_modules/jest/bin/jest.js -c ./jest.config.js --no-cache Storyshots.test.js
|