New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@web/test-runner-core

Package Overview
Dependencies
Maintainers
7
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web/test-runner-core

Web test runner core

  • 0.0.0-canary-20230420104136
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
7
Weekly downloads
 
Created

What is @web/test-runner-core?

@web/test-runner-core is a core library for the Web Test Runner, a modern test runner for web applications. It provides essential functionalities for running tests in browsers, including configuration, plugins, and test execution.

What are @web/test-runner-core's main functionalities?

Configuration

This feature allows you to configure the test runner with specific settings such as the test files to include and the browsers to run the tests in.

const { startTestRunner } = require('@web/test-runner-core');

startTestRunner({
  config: {
    files: ['test/**/*.test.js'],
    browsers: ['chrome', 'firefox'],
  },
});

Plugins

This feature allows you to extend the functionality of the test runner by adding plugins. Plugins can be used to customize the behavior of the test runner.

const { startTestRunner } = require('@web/test-runner-core');
const myPlugin = require('./my-plugin');

startTestRunner({
  config: {
    plugins: [myPlugin()],
  },
});

Test Execution

This feature allows you to execute tests and handle the results. You can specify the test files to run and process the results after the tests are completed.

const { startTestRunner } = require('@web/test-runner-core');

startTestRunner({
  config: {
    files: ['test/**/*.test.js'],
  },
}).then((result) => {
  console.log('All tests completed:', result);
});

Other packages similar to @web/test-runner-core

Keywords

FAQs

Package last updated on 20 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc