fix tests running

This commit is contained in:
Henry Jameson 2022-03-22 16:40:09 +02:00
parent edb66ecade
commit c3546ea856
3 changed files with 332 additions and 445 deletions

View file

@ -1,3 +1,10 @@
import { configureCompat } from 'vue'
// disable compat for certain features
configureCompat({
COMPONENT_V_MODEL: false,
INSTANCE_SET: false,
RENDER_FUNCTION: false
})
// require all test files (files that ends with .spec.js)
const testsContext = require.context('./specs', true, /\.spec$/)
testsContext.keys().forEach(testsContext)