@depack/fixture

1.0.0 • Public • Published

@depack/fixture

npm version

@depack/fixture is The Fixture For Testing Static Analysis.

yarn add -E @depack/fixture

Table Of Contents

API

The package is available by importing its default and named functions:

import fixture, { Component3 } from '@depack/fixture'

The Structure

src
├── Component.jsx
├── Test.jsx
├── Test2.jsx
└── index.jsx

index.jsx

import { render } from 'preact'
import { Test } from '@idio/preact-fixture'
import Component from './Component'

const Fixture = () => {
  return (<Component>
    <Test />
  </Component>)
}

export default Fixture

export { Component3 } from './Test2'

Static Analysis

[ { entry: 'node_modules/preact/dist/preact.mjs',
    packageJson: 'node_modules/preact/package.json',
    version: '8.4.2',
    name: 'preact',
    from: 
     [ 'src/index.jsx',
       'node_modules/@idio/preact-fixture/src/index.js' ] },
  { entry: 'node_modules/@idio/preact-fixture/src/index.js',
    packageJson: 'node_modules/@idio/preact-fixture/package.json',
    version: '1.0.0',
    name: '@idio/preact-fixture',
    from: [ 'src/index.jsx' ] },
  { entry: 'src/Component.jsx', from: [ 'src/index.jsx' ] },
  { entry: 'src/Test2.jsx', from: [ 'src/index.jsx' ] },
  { entry: 'node_modules/@idio/preact-fixture/src/Test.jsx',
    from: [ 'node_modules/@idio/preact-fixture/src/index.js' ] },
  { entry: 'src/Test.jsx', from: [ 'src/Component.jsx' ] } ]

Copyright

Art Deco © Art Deco for Depack 2019 Tech Nation Visa Tech Nation Visa Sucks

Readme

Keywords

Package Sidebar

Install

npm i @depack/fixture

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

6.89 kB

Total Files

15

Last publish

Collaborators

  • zvr