or run

npx @tessl/cli init
Log in

Version

Files

tile.json

task.mdevals/scenario-10/

Karma-QUnit Test Configuration Setup

You need to configure a Karma test runner to execute QUnit tests. Your task is to create a properly configured Karma configuration file that integrates the QUnit testing framework.

Requirements

Create a Karma configuration file karma.conf.js that:

  1. Configures Karma to use the QUnit testing framework
  2. Loads test files from a test/ directory (pattern: test/**/*.test.js)
  3. Uses the Chrome browser for test execution
  4. Runs tests in single-run mode (executes once without watching for changes)

Test Cases

  • When the configuration is loaded, it includes 'qunit' in the frameworks array @test
  • When tests are run with this configuration, QUnit tests execute successfully @test

Implementation

@generates

API

// Karma configuration
module.exports = function(config) {
  config.set({
    // Configuration object
  });
};

Dependencies { .dependencies }

karma-qunit { .dependency }

Provides QUnit framework adapter for Karma test runner.