A simple way to load test data for the browser store.
npm install browser-store-test-data!npm


!GitHub issues
Essentially when developing, you provide a file with some test data.
This test data is loaded into the browser store & ready before your application runs.
Your application then runs & reads test data from the browser store.
shell
Using npm, installing to local project (development)
npm i -D browser-store-test-data
`$3
The main intended method to use this in your project via webpack plugin.$3
`js
// load the library & add to plugins section with otions. Specify test data file(s)
const BrowserStoreTestDataPlugin = require('browser-store-test-data')plugins: [
new BrowserStoreTestDataPlugin(
{
browserDatabase: '[browser-database-name]',
testData: [
{
collectionName: 'collection-name',
dataFile: '.path/to/file/dir'
}
]
}
)
]
``