https://github.com/webdiscus/test-fixtures-js
JS test fixture module
https://github.com/webdiscus/test-fixtures-js
Last synced: 11 months ago
JSON representation
JS test fixture module
- Host: GitHub
- URL: https://github.com/webdiscus/test-fixtures-js
- Owner: webdiscus
- License: isc
- Created: 2022-08-10T12:01:14.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-10T15:09:18.000Z (almost 4 years ago)
- Last Synced: 2025-05-30T00:48:06.633Z (about 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.npmjs.com/package/@test-fixtures/js "download npm package")
[](https://www.npmjs.com/package/@test-fixtures/js)
# @test-fixtures/js
JS test fixture module for testing a module with dependency.
## Install
```
npm i -D @test-fixtures/js
```
## Usage
```js
const { lorem, libA, libB } = require('@test-fixtures/js');
console.log('Lorem: ', lorem.getTitle()); // Lorem Ipsum
console.log('Lib 1: ', libA.getName()); // Lib A
console.log('Lib 2: ', libB.getName()); // Lib B
```