You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ko/unittesting.md
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
# Unit Testing
2
2
3
-
electron-vue makes use of the [Karma](https://karma-runner.github.io/1.0/index.html)test runner and the [Mocha](https://mochajs.org/) test framework \(with [Chai](http://chaijs.com/)\) for unit testing.
3
+
electron-vue는 유닛 테스트를 위해 [Karma](https://karma-runner.github.io/1.0/index.html)테스트 러너, \(Chai[Chai](http://chaijs.com/)와 함께\)[Mocha](https://mochajs.org/) 테스트 프레임워크를 사용합니다.
4
4
5
-
Both Mocha and Chai are integrated using `karma-mocha` and `karma-chai` respectively, so all APIs such as `expect` are globally available in test files.
5
+
Mocha와 Chai는 각각 `karma-mocha`와 `karma-chai`를 사용하여 통합되므로 `expect`와 같은 모든 API는 테스트 파일 전역에서 사용할 수 있습니다.
6
6
7
7
### Running Tests
8
8
@@ -22,21 +22,24 @@ my-project
22
22
└─ └─ └─ karma.conf.js
23
23
```
24
24
25
-
**For the most part, you can ignore both **`index.js`** and **`karma.conf.js`** and focus solely on writing **`specs/`**.**
25
+
대부분의 경우, index.js와 karma.conf.js 둘 다 무시하고 specs/ 작성에만 집중할 수 있습니다.
26
+
27
+
**대부분의 경우,**`index.js`**와**`karma.conf.js`**둘 다 무시하고**`specs/`**작성에만 집중 할 수 있습니다.**
26
28
27
29
#### `specs/`
28
30
29
-
Inside this directory is where actual tests are written. Thanks to the power of webpack, you have full access to ES2015 and supported loaders.
31
+
이 디렉토리 안은 실제 테스트가 작성되는 곳이 있습니다. webpack의 힘으로 ES2015 및 지원되는 로더에 대한 모든 액세스 권한을 갖게됩니다.
30
32
31
33
#### `index.js`
32
34
33
-
This is the entry file used by `karma-webpack`. The purpose of this file is to gather all test and source code in a "one-shot" manner.
35
+
`karma-webpack`에서 사용하는 엔트리 파일입니다. 이 파일의 목적은 모든 테스트 및 소스 코드를 "한 번에" 수집하는 것입니다.
34
36
35
37
#### `karma.conf.js`
36
38
37
-
Here you will find the actual`karma`configuration, set up with spec/coverage reporters. Further customization can be made in accordance to the [official karma documentation](http://karma-runner.github.io/1.0/config/configuration-file.html).
39
+
여기서 spec/coverage 리포터와 함께 설정한 실제`karma`구성을 찾을 수 있습니다. 추가 사용자 정의는 [official karma documentation](http://karma-runner.github.io/1.0/config/configuration-file.html)를 따라 만들 수 있습니다.
38
40
39
41
### Mocking Dependencies
40
42
41
-
electron-vue comes with [`inject-loader`](https://github.com/plasticine/inject-loader) installed by default. For usage with Vue component files see [`vue-loader` docs on testing with mocks](http://vue-loader.vuejs.org/en/workflow/testing-with-mocks.html).
43
+
electron-vue는 기본적으로 [`inject-loader`](https://github.com/plasticine/inject-loader)가 설치되어 있습니다.
44
+
Vue 컴포넌트 파일 사용법은 [`vue-loader` docs on testing with mocks](http://vue-loader.vuejs.org/en/workflow/testing-with-mocks.html)를 참조하세요.
0 commit comments