Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import hots-environment to frameworks met an error #3

Open
wenytang-ms opened this issue Apr 28, 2021 · 0 comments
Open

import hots-environment to frameworks met an error #3

wenytang-ms opened this issue Apr 28, 2021 · 0 comments

Comments

@wenytang-ms
Copy link

wenytang-ms commented Apr 28, 2021

Hi, thanks for your effort.
but when I add the host environment to frameworks, I got an error
28 04 2021 11:13:55.774:ERROR [karma-server]: Server start failed on port 9876: Error: No provider for "framework:host-environment"! (Resolving: framework:host-environment)

and my karma.config.js file is as follow

// https://github.com/karma-runner/karma-chrome-launcher
process.env.CHROME_BIN = require("puppeteer").executablePath();
require("dotenv").config();

module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: "./",

// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ["mocha", "host-environment"],

plugins: [
  "karma-mocha",
  "karma-mocha-reporter",
  "karma-chrome-launcher",
  "karma-edge-launcher",
  "karma-firefox-launcher",
  "karma-ie-launcher",
  "karma-env-preprocessor",
  "karma-coverage",
  "karma-remap-istanbul",
  "karma-junit-reporter"
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant