![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
[![Build Status](https://app.bitrise.io/app/6dbd09bf795284e8/status.svg?token=cPPMxR4jerIruWOfSt-_6g)](https://app.bitrise.io/app/6dbd09bf795284e8)
Dextrose is a testing library that enables the screen shots of components across all react-native platforms
This has been made possible using fructose to load components.
iOS loading in components and taking screenshots
Dextrose's purpose is to iterate through all the bundled components defined by showcases and take a screenshot of each.
The .showcase
file is a description of how a component should be rendered.
Showcase
files came around because originally fructose consumed storybook
files. This eventually resulted in numerous issues so we created an abstraction layer which decouples components from storybook.
You can see a working example of how showcase to storybook works here.
react-native-showcase-loader can be used to dynamically generate a component file with all your defined components.
Dextrose supports the following commands:
run
upload
generate-html
The Dextrose run command can be run with the following commands:
dextrose run --config, -c -path/to/config
--config, -c -path/to/config
--snapshotWait, -t
Ms to wait between loading a component and taking the snap
--loglevel, -l
default is set to info, able to set level to verbose
Example config for platforms
Native
module.exports = {
snapPath: path.join(__dirname, '../snaps'),
platformName: "iOS",
ignoredShowcases: ["IGNORE"]
}
Web
module.exports = {
snapPath: path.join(__dirname, '../snaps'),
platformName: "web",
breakpoints:[500, 1000],
ignoredShowcases: ["IGNORE"]
}
The Dextrose upload command can be run with the following commands to push component images to s3:
dextrose upload snapshotDir --bucket bucketname --key commit_hash
--bucket, -b
the name of the s3 bucket
--key, -k
the name of the key in the bucket
--region, -r
the aws region
The Dextrose generate-html command can be run with the following commands to generate component presentation:
dextrose generate-html --upload --bucket bucketname --key commit-hash
--upload, -u
using this will attempt to upload the html file to s3
--bucket, -b
the name of the s3 bucket
--key, -k
the name of the key in the bucket
--region, -r
the aws region
To run the the example Pull the repo
yarn
in the Dextrose folderyarn
in the snapshots folder (the snapshots folder is an example of how you would consume dextrose)./run-(ios | android | web).sh
note: please make sure you have an (emulator | simulator), and a packager running.
FAQs
[![Build Status](https://app.bitrise.io/app/6dbd09bf795284e8/status.svg?token=cPPMxR4jerIruWOfSt-_6g)](https://app.bitrise.io/app/6dbd09bf795284e8)
The npm package dextrose receives a total of 8 weekly downloads. As such, dextrose popularity was classified as not popular.
We found that dextrose demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.