Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 7a30769

Browse files
authored
Merge pull request #177 from smashingboxes/feature/reorg-folders-20190507-v2
Move Test Files to the Folder the File They Test Is In
2 parents 4c7337a + d50ee82 commit 7a30769

183 files changed

Lines changed: 120 additions & 70 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
- run: apt-get install -y build-essential npm nodejs
99
- checkout
1010
- run: npm install
11+
- run: npm run build # needed because the policy and about plugin components are added during the build step
12+
- run: npm run test:ci
1113
deploy-bundle-analysis:
1214
docker:
1315
- image: ubuntu
@@ -28,4 +30,4 @@ workflows:
2830
- deploy-bundle-analysis:
2931
filters:
3032
branches:
31-
only: master
33+
only: master

.codeclimate.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: "2"
2+
checks:
3+
similar-code:
4+
enabled: false
5+
identical-code:
6+
enabled: false
7+
exclude_patterns:
8+
- "src/**/*.test.js"

package-lock.json

Lines changed: 66 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"update-fonts": "cp -r ./node_modules/@code.gov/code-gov-style/assets/font/* ./assets/fonts/.",
2323
"snyk": "snyk test",
2424
"test": "jest --coverage",
25+
"test:ci": "jest --coverage --ci",
2526
"test-watch": "jest --watch"
2627
},
2728
"husky": {
@@ -51,13 +52,13 @@
5152
"homepage": "https://github.com/GSA/code-gov-front-end#readme",
5253
"private": "false",
5354
"dependencies": {
54-
"@code.gov/about-page": "0.1.11",
55+
"@code.gov/about-page": "0.1.12",
5556
"@code.gov/api-client": "0.3.3",
5657
"@code.gov/cautious": "0.3.0",
5758
"@code.gov/code-gov-font": "^0.7.1",
5859
"@code.gov/code-gov-style": "1.14.1",
5960
"@code.gov/compliance-dashboard-web-component": "^0.2.0",
60-
"@code.gov/fscp-react-component": "0.3.3",
61+
"@code.gov/fscp-react-component": "0.3.4",
6162
"@code.gov/json-schema-validator-web-component": "^0.2.0",
6263
"@code.gov/json-schema-web-component": "0.4.0",
6364
"@code.gov/site-map-generator": "^1.0.2",
@@ -167,6 +168,7 @@
167168
"!src/index.js",
168169
"!src/**/index.js"
169170
],
171+
"coverageDirectory": "coverage",
170172
"moduleNameMapper": {
171173
".*\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|md)$": "<rootDir>/tests/mocks/asset.js"
172174
},
File renamed without changes.

tests/unit/actions/collapse-all-mobile-menu-options.test.js renamed to src/actions/collapse-all-mobile-menu-options.test.js

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)