{"_id":"@dwol/person-roles-layer-test","_rev":"2-92376a25e441d1b185d4a75894093728","name":"@dwol/person-roles-layer-test","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@dwol/person-roles-layer-test","version":"0.0.1","_id":"@dwol/person-roles-layer-test@0.0.1","maintainers":[{"name":"dwol","email":"dietrich@daxiom.com"}],"dist":{"shasum":"d54c39f25463fd141379e6d2a656b6fec0a8ac8b","tarball":"https://registry.npmjs.org/@dwol/person-roles-layer-test/-/person-roles-layer-test-0.0.1.tgz","fileCount":149,"integrity":"sha512-7P/bgvFngCYE5FU+Qc+1+8Ahoo4MowSe7qEdmV+SI9to6gJPZWiKjlc7mmwezcVgEQ3IEwYC8CyZScVremGE5g==","signatures":[{"sig":"MEQCIAO0dMLsvMFNJjZePcjw8NRl7fnBrWG0LbFXzIoU67vIAiBIW7Nx0CY+IGgV82RFoloUShAWjaOQS7RFSVfbIYvmFQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":362656},"type":"module","_from":"file:dwol-person-roles-layer-test-0.0.1.tgz","gitHead":"aaeabb1b93b2159f79b4c68f11aa1f5831fc3f65","private":false,"scripts":{"dev":"nuxt dev","lint":"eslint .","test":"vitest --dir tests/unit --passWithNoTests --coverage","build":"nuxt generate","preview":"nuxt preview","generate":"nuxt generate","lint:fix":"eslint --fix .","test:e2e":"npx playwright test","test:unit":"vitest --dir tests/unit","build-check":"nuxt build","postinstall":"nuxt prepare","test:e2e:ui":"npx playwright test --ui","test:unit:cov":"vitest --dir tests/unit --coverage"},"_npmUser":{"name":"dwol","email":"dietrich@daxiom.com"},"_resolved":"/private/var/folders/hk/xvbhhbps0m78txnycy_5zjdr0000gn/T/f1436b504273db82c7774c0693841b0b/dwol-person-roles-layer-test-0.0.1.tgz","_integrity":"sha512-7P/bgvFngCYE5FU+Qc+1+8Ahoo4MowSe7qEdmV+SI9to6gJPZWiKjlc7mmwezcVgEQ3IEwYC8CyZScVremGE5g==","_npmVersion":"10.2.4","description":"## Tech - Framework: [Nuxt 3](https://nuxt.com/) - UI Library: [Nuxt UI v3](https://ui.nuxt.com/)","directories":{},"_nodeVersion":"20.11.0","dependencies":{"nuxt":"^3.17.5","http-status-codes":"^2.3.0","@dwol/nuxt-core-layer-test":"^0.0.7"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.23.0","vitest":"^3.0.9","otpauth":"^9.3.6","happy-dom":"^17.4.4","typescript":"^5.8.2","@nuxt/image":"^1.10.0","@types/node":"^22.13.14","nuxt-lodash":"^2.5.3","@nuxt/eslint":"^1.2.0","@nuxtjs/i18n":"^9.3.4","@faker-js/faker":"^9.6.0","@vue/test-utils":"^2.4.6","@nuxt/test-utils":"^3.17.2","@playwright/test":"^1.51.1","@vitest/coverage-v8":"^3.0.9","@axe-core/playwright":"^4.10.1","@testing-library/vue":"^8.1.0"},"_npmOperationalInternal":{"tmp":"tmp/person-roles-layer-test_0.0.1_1750121117114_0.5512612897436275","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@dwol/person-roles-layer-test","version":"0.0.2","private":false,"type":"module","main":"./nuxt.config.ts","dependencies":{"@dwol/nuxt-core-layer-test":"^0.0.7","http-status-codes":"^2.3.0","nuxt":"^3.17.5"},"devDependencies":{"@axe-core/playwright":"^4.10.1","@faker-js/faker":"^9.6.0","@nuxt/eslint":"^1.2.0","@nuxt/image":"^1.10.0","@nuxt/test-utils":"^3.17.2","@nuxtjs/i18n":"^9.3.4","@playwright/test":"^1.51.1","@testing-library/vue":"^8.1.0","@types/node":"^22.13.14","@vitest/coverage-v8":"^3.0.9","@vue/test-utils":"^2.4.6","eslint":"^9.23.0","happy-dom":"^17.4.4","nuxt-lodash":"^2.5.3","otpauth":"^9.3.6","typescript":"^5.8.2","vitest":"^3.0.9"},"scripts":{"build-check":"nuxt build","build":"nuxt generate","dev":"nuxt dev","generate":"nuxt generate","preview":"nuxt preview","postinstall":"nuxt prepare","lint":"eslint .","lint:fix":"eslint --fix .","test":"vitest --dir tests/unit --passWithNoTests --coverage","test:unit":"vitest --dir tests/unit","test:unit:cov":"vitest --dir tests/unit --coverage","test:e2e":"npx playwright test","test:e2e:ui":"npx playwright test --ui"},"gitHead":"aaeabb1b93b2159f79b4c68f11aa1f5831fc3f65","description":"## Tech - Framework: [Nuxt 3](https://nuxt.com/) - UI Library: [Nuxt UI v3](https://ui.nuxt.com/)","_id":"@dwol/person-roles-layer-test@0.0.2","_integrity":"sha512-lDsIiEsF2cfoOlaCfyCxsc1XkrdGLsbyFWOKbOKISoyKflhAnQeP2AZeiqymT4VkVaChN6mclHpQrjw0nI1Cdw==","_resolved":"/private/var/folders/hk/xvbhhbps0m78txnycy_5zjdr0000gn/T/1f3c614a3055af406f6de48ea1045027/dwol-person-roles-layer-test-0.0.2.tgz","_from":"file:dwol-person-roles-layer-test-0.0.2.tgz","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-lDsIiEsF2cfoOlaCfyCxsc1XkrdGLsbyFWOKbOKISoyKflhAnQeP2AZeiqymT4VkVaChN6mclHpQrjw0nI1Cdw==","shasum":"332266c0b04c2948c5732df1522d23d4ba9aebf7","tarball":"https://registry.npmjs.org/@dwol/person-roles-layer-test/-/person-roles-layer-test-0.0.2.tgz","fileCount":149,"unpackedSize":362686,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC+T8GPyINgjs/MRrrwrh/2wIsiHsYWrBDX5yf0ZKNsiAIhAPsBmqG/pa43dc7r3bn0/+c17aGp/Sqp0YmLBW8POBth"}]},"_npmUser":{"name":"dwol","email":"dietrich@daxiom.com"},"directories":{},"maintainers":[{"name":"dwol","email":"dietrich@daxiom.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/person-roles-layer-test_0.0.2_1750121383563_0.26838333903166056"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-17T00:45:17.033Z","modified":"2025-06-17T00:49:44.376Z","0.0.1":"2025-06-17T00:45:17.343Z","0.0.2":"2025-06-17T00:49:44.203Z"},"description":"## Tech - Framework: [Nuxt 3](https://nuxt.com/) - UI Library: [Nuxt UI v3](https://ui.nuxt.com/)","maintainers":[{"name":"dwol","email":"dietrich@daxiom.com"}],"readme":"# Person Roles UI\n\n## Tech\n- Framework: [Nuxt 3](https://nuxt.com/)\n- UI Library: [Nuxt UI v3](https://ui.nuxt.com/)\n\n## Development and Contributing\n\nPlease review the [Code of Conduct](./CODE_OF_CONDUCT.md) and [Contributing](./CONTRIBUTING.md) guidelines before contributing to this project to ensure a positive and productive experience for everyone.\n\nCreate a fork and local copy of this repo. Answer _Y_ to create a local clone.\n```bash\ngh repo fork bcgov/business-ui\n```\n\nChange into the directory and install the packages.\n```bash\ncd bcgov/business-ui/person-roles\npnpm install\n```\n\nStartup the development environment.\n```bash\npnpm run dev\n```\n\n## Build and Preview\n\nBuild the static site\n```bash\npnpm run generate\n```\n\nLocally preview the static site\n```bash\nnpx serve .output/public\n```\n\n## Testing\n\n### Unit\n\nUnit testing is configured to use the following libraries:\n\n- [Vitest](https://vitest.dev/guide/) - test runner\n- [Vitest Coverage](https://vitest.dev/guide/coverage) - test coverage\n- [Nuxt Test Utils](https://nuxt.com/docs/getting-started/testing?utm_source=nuxt.com&utm_medium=aside-module&utm_campaign=nuxt.com) - nuxt specific test utils\n- [@testing-library/vue](https://testing-library.com/docs/vue-testing-library/intro/) - test utils\n- [Vue Test Utils](https://test-utils.vuejs.org/guide/) - test utils\n\nTo run Vitest:\n```bash\npnpm test:unit\n```\n\nTo run Vitest Coverage:\n```bash\npnpm test:unit:cov\n```\n\n### E2E\n\nUnit testing is configured to use the following libraries:\n\n- [Playwright](https://playwright.dev/docs/intro) - test runner\n- [Axe Core Playwright](https://playwright.dev/docs/accessibility-testing) - accessibility testing\n\n**Please use [Faker](https://fakerjs.dev/guide/) to generate unique test data**\n\nTo run Playwright in the terminal:\n```bash\npnpm test:e2e\n```\n\nTo run Playwright in ui mode:\n```bash\npnpm test:e2e:ui\n```\n\n#### Playwright Config\n\nThe globalSetup option will create and save an auth user state which can then be used inside other tests:\n```js\n  globalSetup: './tests/e2e/setup',\n```\n\nTo use this auth state:\n```js\n  test.describe('Describe Block', () => {\n    test.use({ storageState: `tests/e2e/.auth/bcsc-user.json` })\n\n    test('My Test', async ({ page }) => {\n      // stuff\n    })\n  })\n```\n\nTo run tests in headless mode, set the headless property in the Playwright config:\n```js\n  use: {\n    headless: true\n  }\n```\n\n#### Environment Variables Setup\n\nBefore running any e2e tests, ensure the `.env` file has the correct values. Missing or incorrect values will lead to test failures. Below are the required environment variables:\n\n```\n# playwright login\nPLAYWRIGHT_TEST_BCSC_USERNAME=\"\"\nPLAYWRIGHT_TEST_BCSC_PASSWORD=\"\"\n\n# The full url the tests will run against (local/dev/test/sandbox)\nNUXT_BASE_URL=\"\"\n```\n\n#### Important\n\n- A maximum of 4 workers seems to be the sweet spot for tests to pass without colliding with each other.\n- Setting to 1 worker will fully disable running tests in parallel.\n- Using the Playwright extension/testing tab does not execute the global setup and save the auth state. You must run `pnpm:e2e` to at least create the auth files before running tests with the extension.","readmeFilename":"README.md"}