Code Monkey home page Code Monkey logo

karma-file-fixtures-preprocessor's Issues

Updating from 2.0.1 to 3.0.0 breaks the tests

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?

Fixtures property undefined in IE unless in debug mode

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.