File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 3
3
1 . Install [ Yarn] ( https://yarnpkg.com/ )
4
4
5
5
2 . Run the following commands to set up the development environment.
6
+
6
7
```
7
8
bundle install
8
9
yarn
9
10
```
10
11
11
12
## Making sure your changes pass all tests
13
+
12
14
There are a number of automated checks which run on GitHub Actions when a pull request is created.
15
+
13
16
You can run those checks on your own locally to make sure that your changes would not break the CI build.
14
17
15
18
### 1. Check the code for JavaScript style violations
19
+
16
20
```
17
21
yarn lint
18
22
```
19
23
20
24
### 2. Check the code for Ruby style violations
25
+
21
26
```
22
27
bundle exec rubocop
23
28
```
24
29
25
30
### 3. Run the JavaScript test suite
31
+
26
32
```
27
33
yarn test
28
34
```
29
35
30
36
### 4. Run the Ruby test suite
37
+
31
38
```
32
39
bundle exec rake test
33
40
```
41
+
42
+ #### 4.1 Run a single ruby test file
43
+
44
+ ```
45
+ bundle exec rake test TEST=test/rake_tasks_test.rb
46
+ ```
47
+
48
+ #### 4.2 Run a single ruby test
49
+
50
+ ```
51
+ ruby -I test test/rake_tasks_test.rb -n test_rake_webpacker_install
52
+ ```
You can’t perform that action at this time.
0 commit comments