alphagov / govuk-frontend

GOV.UK Frontend contains the code you need to start building a user interface for government platforms and services.
https://frontend.design-system.service.gov.uk/
MIT License
1.18k stars 325 forks source link

Rename `govuk/all` test file #4954

Closed 36degrees closed 6 months ago

36degrees commented 6 months ago

This file was missed when we renamed all of our tests in #4205 (03e5371).

As a result it isn’t currently included when running npm test, nor can it be run using npx jest:

$ npx jest --listTests | grep 'govuk/all'
/Users/oliver.byford/Code/govuk-frontend/packages/govuk-frontend/src/govuk/all.jsdom.test.mjs

$ npx jest packages/govuk-frontend/src/govuk/all.test.mjs
No tests found, exiting with code 1
Run with `--passWithNoTests` to exit with code 0
In /Users/oliver.byford/Code/govuk-frontend
  2028 files checked across 6 projects. Run with `--verbose` for more details.
Pattern: packages/govuk-frontend/src/govuk/all.test.mjs - 0 matches

Rename the file so that it matches one of the existing Jest Projects and can then be run as expected:

$ npx jest --listTests | grep 'govuk/all'
/Users/oliver.byford/Code/govuk-frontend/packages/govuk-frontend/src/govuk/all.unit.test.mjs
/Users/oliver.byford/Code/govuk-frontend/packages/govuk-frontend/src/govuk/all.jsdom.test.mjs

$ npx jest packages/govuk-frontend/src/govuk/all.unit.test.mjs
 PASS   JavaScript unit tests  packages/govuk-frontend/src/govuk/all.unit.test.mjs
  GOV.UK Frontend
    ✓ does not contain any unexpected govuk- function calls (141 ms)
    global styles
      ✓ are disabled by default (141 ms)
      ✓ are enabled if $global-styles variable is set to true (146 ms)
    Sass documentation
      ✓ associates everything with a group (208 ms)

Test Suites: 1 passed, 1 total
Tests:       4 passed, 4 total
Snapshots:   0 total
Time:        1.279 s, estimated 2 s
Ran all test suites matching /packages\/govuk-frontend\/src\/govuk\/all.unit.test.mjs/i.
github-actions[bot] commented 6 months ago

:clipboard: Stats

File sizes

File Size
dist/govuk-frontend-development.min.css 113.24 KiB
dist/govuk-frontend-development.min.js 42.21 KiB
packages/govuk-frontend/dist/govuk/all.bundle.js 87.21 KiB
packages/govuk-frontend/dist/govuk/all.bundle.mjs 81.95 KiB
packages/govuk-frontend/dist/govuk/all.mjs 4.17 KiB
packages/govuk-frontend/dist/govuk/govuk-frontend-component.mjs 359 B
packages/govuk-frontend/dist/govuk/govuk-frontend.min.css 113.23 KiB
packages/govuk-frontend/dist/govuk/govuk-frontend.min.js 42.2 KiB
packages/govuk-frontend/dist/govuk/i18n.mjs 5.55 KiB

Modules

File Size (bundled) Size (minified)
all.mjs 77.67 KiB 40.19 KiB
accordion.mjs 22.71 KiB 12.85 KiB
button.mjs 5.98 KiB 2.69 KiB
character-count.mjs 22.4 KiB 9.92 KiB
checkboxes.mjs 5.83 KiB 2.83 KiB
error-summary.mjs 7.89 KiB 3.46 KiB
exit-this-page.mjs 17.1 KiB 9.26 KiB
header.mjs 4.46 KiB 2.6 KiB
notification-banner.mjs 6.26 KiB 2.62 KiB
password-input.mjs 15.15 KiB 7.25 KiB
radios.mjs 4.83 KiB 2.38 KiB
skip-link.mjs 4.39 KiB 2.18 KiB
tabs.mjs 10.13 KiB 6.11 KiB

View stats and visualisations on the review app


Action run for 50d958b7aaa63b047a77be742af923d7014fb7f1