Gathering detailed insights and metrics for @smapiot/piral-cli-integration-tests
Gathering detailed insights and metrics for @smapiot/piral-cli-integration-tests
Gathering detailed insights and metrics for @smapiot/piral-cli-integration-tests
Gathering detailed insights and metrics for @smapiot/piral-cli-integration-tests
Integration tests for the piral-cli π¦.
npm install @smapiot/piral-cli-integration-tests
Module System
Unable to determine the module system for this package.
Min. Node Version
Typescript Support
Node Version
NPM Version
4 Stars
167 Commits
2 Forks
3 Watching
2 Branches
4 Contributors
Updated on 23 Oct 2024
TypeScript (96.92%)
JavaScript (3.08%)
Cumulative downloads
Total Downloads
Last day
-97%
1
Compared to previous day
Last week
-89.2%
4
Compared to previous week
Last month
11.4%
49
Compared to previous month
Last year
-62.4%
624
Compared to previous year
Integration tests for the piral-cli
tool and its default bundler. Can be used as a test bench when implementing a new bundler, too.
OS | Node | Status |
---|---|---|
Linux | 18.x | |
Linux | 22.x | |
Windows | 18.x | |
Windows | 22.x | |
MacOS | 18.x | |
MacOS | 22.x |
After you cloned the repository run:
1npm i
or an alternative command using your favorite package manager.
Now you can try running all tests:
1npm start
You can also run the tests from a specific file only:
1npm start -- src/pilet-build.test.ts
If you are only interested in a single test (e.g., 'can build a standard templated v2 pilet from sample-piral'
) then run it via:
1npm start -- src/pilet-build.test.ts -t 'can build a standard templated v2 pilet from sample-piral'
Caution: Tests that leverage the integrated browser (using the page
variable) can only be run if the whole test suite (i.e., no -t
is specified) is run.
For Ubuntu 18.04 and higher the system dependencies can get installed automatically. Many other systems may just work without any special dependencies:
1npx playwright install-deps chromium
To ensure everything is working with the test browser we recommend also installing the browsers from Playwright via the command line:
1npx playwright install chromium
The tests are also available as a drop-in package to test bundler plugins. You can install it with:
1npm i @smapiot/piral-cli-integration-tests
Then run the tests using
1npx piral-cli-tests <your-bundler-name>
If you don't specify the bundler name then the current working directory's package.json will be used to infer it.
piral-inspector
)sample-piral
)mf
piletv3
piletv2
piletv1
piletv0
piletsample-piral
to currentpiral-inspector
)The publish pilet command uses:
1pilet publish --api-key {key} --url https://feed.piral.cloud/api/v1/pilet/temp --fresh
It also can perform against a feed hosted by the sample-pilet-service
.
ENV | Description | Default |
---|---|---|
CLI_VERSION | Version of the piral-cli package | latest |
BUNDLER_PLUGIN | The name of the bundler to use | |
BUNDLER_FEATURES | The features of the bundler plugin | all |
Available features:
codegen
, can handle *.codegen
filessplitting
, can handle import()
calls with a new JS side-bundlepilet.v0
, supports the v0
schemapilet.v1
, supports the v1
schemapilet.v2
, supports the v2
schemapilet.v3
, supports the v3
schemapilet.mf
, supports the mf
schemaimportmap.ref
, supports usage of an importmapimportmap.local
, supports local creation of importmap side-bundlesbuild.pilet
, supports building a piletbuild.piral
, supports building a Piral instancedebug.pilet
, supports debugging a piletdebug.piral
, supports debugging a Piral instancehmr
, supports hot module reloading (for Piral instances)Piral is released using the MIT license. For more information see the license file.
No vulnerabilities found.
No security vulnerabilities found.