Cannot run unit tests
See original GitHub issueI am attempting to use vue-test-utils
and jest
to run some unit tests on my vuex actions. I am running into the error below. Any ideas on how I can get this resolved?
FAIL test/unit/specs/masternode/Provision.spec.js
● Test suite failed to run
TypeError: Cannot read property '_config' of undefined
at new VuexPersistence (node_modules/vuex-persist/dist/index.js:133:44)
at Object.<anonymous> (src/store/index.js:60:17)
at Object.<anonymous> (src/contracts/MNProposedMarket.js:19:14)
at Object.<anonymous> (src/store/modules/app/actions.js:35:25)
at Object.<anonymous> (src/store/modules/app/index.js:7:16)
at Object.<anonymous> (src/store/modules/index.js:7:12)
at Object.<anonymous> (test/unit/specs/masternode/Provision.spec.js:27:16)
Here is my spec so far:
describe('AppActions', () => {
const vuexLocal = new VuexPersist({
storage: window.localStorage,
modules: ['app', 'masternode', 'marketplace'],
})
let store
beforeEach(() => {
store = new VuexStore ({
plugins: [vuexLocal.plugin]
})
})
})
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:18 (7 by maintainers)
Top Results From Across the Web
Tests not running in Test Explorer - visual studio
The Test Explorer is showing all unit tests, but once clicking on "Run All", all tests are getting greyed out and show no...
Read more >Can't run or debug unit tests - Visual Studio Feedback
I'm using Visual Studio Community Edition 15.8.1 and I can't run or debug any unit tests. Every time I'm trying to run the...
Read more >Cannot run Unit Tests | Apple Developer Forums
1. Open project in Xcode which has unit tests · 2. Open the Test navigator · 3. Click a run button to run...
Read more >How To Resolve Issue Of Test Project Not Running The Unit ...
Two of my test projects didn't run the test cases, it was about to start and took some time to run the test...
Read more >Can't run unit test in Test Runner
I am new to the unit test framework in pycharm. I created a simple unit test driver that uses "unittest". However, I can't...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry I had been really swamped by work. I’ll fix this, this week.
On Mon 23 Apr, 2018, 5:34 PM SkyzohKey, notifications@github.com wrote:
Thanks @championswimmer , I’ve tried v1.1.6 … original error disappeared, but a new one came up :