質問編集履歴
2
誤記
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
テスト対象の関数に引数を定義すると`SyntaxError`でテストが失敗します。
|
4
4
|
|
5
|
-
Typs
|
5
|
+
Typescript, Jestでテストを書いています。
|
6
6
|
ある、関数をテストするためにテストコードを書いたのですが、なぜか`SyntaxError`で失敗します。
|
7
7
|
ほとんど同じ内容で、関数から引数を除くと成功します。
|
8
8
|
|
@@ -129,7 +129,7 @@
|
|
129
129
|
|
130
130
|
## 補足情報
|
131
131
|
|
132
|
-
`jest.config.js`, `jest.setup.js`はそれぞれ作っていません。
|
132
|
+
`./jest.config.js`, `./jest.setup.js`はそれぞれ作っていません。
|
133
133
|
|
134
134
|
`./babel.config.js`をいじっています。
|
135
135
|
|
1
誤記
test
CHANGED
File without changes
|
test
CHANGED
@@ -122,7 +122,7 @@
|
|
122
122
|
Tests: 0 total
|
123
123
|
Snapshots: 0 total
|
124
124
|
Time: 0.441 s
|
125
|
-
Ran all test suites matching /
|
125
|
+
Ran all test suites matching /hoge.test.ts/i.
|
126
126
|
error Command failed with exit code 1.
|
127
127
|
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
|
128
128
|
```
|
@@ -197,7 +197,7 @@
|
|
197
197
|
Tests: 0 total
|
198
198
|
Snapshots: 0 total
|
199
199
|
Time: 0.224 s
|
200
|
-
Ran all test suites matching /
|
200
|
+
Ran all test suites matching /hoge.test.ts/i.
|
201
201
|
error Command failed with exit code 1.
|
202
202
|
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
|
203
203
|
```
|