Skip to content

Add createAll function to initialise individual components #11641

Add createAll function to initialise individual components

Add createAll function to initialise individual components #11641

Triggered via pull request May 9, 2024 15:29
Status Failure
Total duration 5m 53s
Artifacts 5

tests.yml

on: pull_request
Matrix: Install
Matrix: Build
Diff changes to npm package  /  Generate diff
1m 4s
Diff changes to npm package / Generate diff
Stats comment  /  Generate stats
31s
Stats comment / Generate stats
Matrix: lint
Percy  /  Send screenshots
2m 7s
Percy / Send screenshots
Matrix: Bundler integrations / Test tree shaking
Matrix: package
Matrix: test
Matrix: verify
Fit to window
Zoom out
Zoom in

Annotations

8 errors
dist/ › govuk-frontend-[version].min.js.map › should contain relative paths to sources: packages/govuk-frontend/tasks/build/release.unit.test.mjs#L128
expect(received).toContain(expected) // indexOf Expected value: "../packages/govuk-frontend/src/govuk/all.mjs" Received array: ["../packages/govuk-frontend/src/govuk/common/govuk-frontend-version.mjs", "../packages/govuk-frontend/src/govuk/common/normalise-string.mjs", "../packages/govuk-frontend/src/govuk/common/index.mjs", "../packages/govuk-frontend/src/govuk/common/normalise-dataset.mjs", "../packages/govuk-frontend/src/govuk/errors/index.mjs", "../packages/govuk-frontend/src/govuk/govuk-frontend-component.mjs", "../packages/govuk-frontend/src/govuk/i18n.mjs", "../packages/govuk-frontend/src/govuk/components/accordion/accordion.mjs", "../packages/govuk-frontend/src/govuk/components/button/button.mjs", "../packages/govuk-frontend/src/govuk/common/closest-attribute-value.mjs", …] at Object.toContain (packages/govuk-frontend/tasks/build/release.unit.test.mjs:128:33)
Verify distribution build (ubuntu-latest)
Process completed with exit code 1.
packages/govuk-frontend/dist/ › ECMAScript (ES) modules › all.mjs › should export each module: packages/govuk-frontend/tasks/build/package.unit.test.mjs#L183
expect(received).toContain(expected) // indexOf Expected substring: "import { Accordion } from './components/accordion/accordion.mjs'; import { Button } from './components/button/button.mjs'; import { CharacterCount } from './components/character-count/character-count.mjs'; import { Checkboxes } from './components/checkboxes/checkboxes.mjs'; import { ErrorSummary } from './components/error-summary/error-summary.mjs'; import { ExitThisPage } from './components/exit-this-page/exit-this-page.mjs'; import { Header } from './components/header/header.mjs'; import { NotificationBanner } from './components/notification-banner/notification-banner.mjs'; import { PasswordInput } from './components/password-input/password-input.mjs'; import { Radios } from './components/radios/radios.mjs'; import { SkipLink } from './components/skip-link/skip-link.mjs'; import { Tabs } from './components/tabs/tabs.mjs';" Received string: "export { version } from './common/govuk-frontend-version.mjs'; export { Accordion } from './components/accordion/accordion.mjs'; export { Button } from './components/button/button.mjs'; export { CharacterCount } from './components/character-count/character-count.mjs'; export { Checkboxes } from './components/checkboxes/checkboxes.mjs'; export { ErrorSummary } from './components/error-summary/error-summary.mjs'; export { ExitThisPage } from './components/exit-this-page/exit-this-page.mjs'; export { Header } from './components/header/header.mjs'; export { NotificationBanner } from './components/notification-banner/notification-banner.mjs'; export { PasswordInput } from './components/password-input/password-input.mjs'; export { Radios } from './components/radios/radios.mjs'; export { SkipLink } from './components/skip-link/skip-link.mjs'; export { Tabs } from './components/tabs/tabs.mjs'; export { initAll } from './init.mjs'; //# sourceMappingURL=all.mjs.map " at Object.toContain (packages/govuk-frontend/tasks/build/package.unit.test.mjs:183:26)
Verify package build (ubuntu-latest)
Process completed with exit code 1.
dist/ › govuk-frontend-[version].min.js.map › should contain relative paths to sources: packages/govuk-frontend/tasks/build/release.unit.test.mjs#L128
expect(received).toContain(expected) // indexOf Expected value: "../packages/govuk-frontend/src/govuk/all.mjs" Received array: ["../packages/govuk-frontend/src/govuk/common/govuk-frontend-version.mjs", "../packages/govuk-frontend/src/govuk/common/normalise-string.mjs", "../packages/govuk-frontend/src/govuk/common/index.mjs", "../packages/govuk-frontend/src/govuk/common/normalise-dataset.mjs", "../packages/govuk-frontend/src/govuk/errors/index.mjs", "../packages/govuk-frontend/src/govuk/govuk-frontend-component.mjs", "../packages/govuk-frontend/src/govuk/i18n.mjs", "../packages/govuk-frontend/src/govuk/components/accordion/accordion.mjs", "../packages/govuk-frontend/src/govuk/components/button/button.mjs", "../packages/govuk-frontend/src/govuk/common/closest-attribute-value.mjs", …] at Object.toContain (packages/govuk-frontend/tasks/build/release.unit.test.mjs:128:33)
Verify distribution build (windows-latest)
Process completed with exit code 1.
packages/govuk-frontend/dist/ › ECMAScript (ES) modules › all.mjs › should export each module: packages/govuk-frontend/tasks/build/package.unit.test.mjs#L183
expect(received).toContain(expected) // indexOf Expected substring: "import { Accordion } from './components/accordion/accordion.mjs'; import { Button } from './components/button/button.mjs'; import { CharacterCount } from './components/character-count/character-count.mjs'; import { Checkboxes } from './components/checkboxes/checkboxes.mjs'; import { ErrorSummary } from './components/error-summary/error-summary.mjs'; import { ExitThisPage } from './components/exit-this-page/exit-this-page.mjs'; import { Header } from './components/header/header.mjs'; import { NotificationBanner } from './components/notification-banner/notification-banner.mjs'; import { PasswordInput } from './components/password-input/password-input.mjs'; import { Radios } from './components/radios/radios.mjs'; import { SkipLink } from './components/skip-link/skip-link.mjs'; import { Tabs } from './components/tabs/tabs.mjs';" Received string: "export { version } from './common/govuk-frontend-version.mjs'; export { Accordion } from './components/accordion/accordion.mjs'; export { Button } from './components/button/button.mjs'; export { CharacterCount } from './components/character-count/character-count.mjs'; export { Checkboxes } from './components/checkboxes/checkboxes.mjs'; export { ErrorSummary } from './components/error-summary/error-summary.mjs'; export { ExitThisPage } from './components/exit-this-page/exit-this-page.mjs'; export { Header } from './components/header/header.mjs'; export { NotificationBanner } from './components/notification-banner/notification-banner.mjs'; export { PasswordInput } from './components/password-input/password-input.mjs'; export { Radios } from './components/radios/radios.mjs'; export { SkipLink } from './components/skip-link/skip-link.mjs'; export { Tabs } from './components/tabs/tabs.mjs'; export { initAll } from './init.mjs'; //# sourceMappingURL=all.mjs.map " at Object.toContain (packages/govuk-frontend/tasks/build/package.unit.test.mjs:183:26)
Verify package build (windows-latest)
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
JavaScript behaviour tests coverage (ubuntu-latest)
230 KB
JavaScript behaviour tests coverage (windows-latest)
230 KB
JavaScript unit tests coverage (ubuntu-latest)
213 KB
JavaScript unit tests coverage (windows-latest)
213 KB
Package diff
10.8 KB