
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
component-fixture
Advanced tools
https://david-desmaisons.github.io/ComponentFixture/
Interactive test fixture for vue component.
Component is designed to receive any component you want to test as a default slot
<sandbox>
<!-- Use the default slot to create the component under test -->
<component-under-test/>
</sandbox>
v-model
binding if needed.sync
modifier patterndata
and computed
informationExample using vue-slider-component:
Why would you need such a component?
ComponentFixture
is intended to be used only in a test/dev context with two main applications.
This will be provided on next major version.
<sandbox :defaults="{value: 23}">
<!-- Use the default slot to for the component under test -->
<component-under-test></component-under-test>
</sandbox>
import { Sandbox } from 'component-fixture'
import "component-fixture/dist/ComponentFixture.css"
import { componentUnderTest } from 'componentUnderTest'
export default {
components: {
componentUnderTest,
Sandbox
}
}
default
Slot for the component under testdefaults
Object (optional)
Value: {[propName]: defaultValue}
Object sets to default the component under-test props. For example if you want to default the props value with 46, use: :defaults="{value: 46}"
possibleValues
Object (optional)
Value: {[propName]: [...values]}
Object used to predefined the possible values for a given props.
The values defined by possibleValues
will be used to create a select from the provided values for the given props.
For example if you want to limit the props value to 1,2, 3 or 4, use: :possibleValues="{value: [1,2,3,4]}"
componentHeight
String (optional)
Style to be applied to the component under-test height. Default to null.
componentWidth
String (optional)
Style to be applied to the component under-test width. Default to null.
useStore
Boolean (default: false)
If true and vuex is being used, a store module is automatically created and its state is bound to component props.
npm install ComponentFixture
npm install
npm run serve
npm run build
npm run lint
npm run test:unit
npm run doc:build
npm run styleguide
npm run styleguide:build
FAQs
Unknown package
We found that component-fixture demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.