jhildenbiddle / karma-file-fixtures-preprocessor Goto Github PK
View Code? Open in Web Editor NEWA Karma plugin that makes file content accessible within test environments
License: MIT License
A Karma plugin that makes file content accessible within test environments
License: MIT License
Just updated your plugin from 2.0.1 and karma from 4.2.0 to 4.4.0. Doing that window.__FIXTURES__
is suddenly undefined.
I have config file similar to this:
/*global module */
process.env.CHROME_BIN = require('puppeteer').executablePath()
const isDocker = require('is-docker')()
module.exports = function (config) {
'use strict'
config.set({
// Use cwd as base path
basePath: '',
// Set the browser to run
browsers: ['ChromeHeadlessNoSandbox'],
concurrency: Infinity,
plugins: [
...
'karma-file-fixtures-preprocessor',
],
...
preprocessors: {
...
'test/resources/**/*.json' : ['file-fixtures']
}
})
}
Keeping karma at 4.4.0 and downgrading to 2.0.1 make it work again.
Is there an update to what the configuration should look like?
Running v2.0.1 since v3.0.0 doesn't work yet.
When I launch my tests in multiple browsers, IE seems to have an issue where the fixtures global is undefined. However, it works if I click the "Debug" button and try to debug the code in dev tools.
Trying to open the URL that karma-file-fixtures.js would be at results in IE attempting to download the file rather than display it... which is odd.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.