Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-testcafe

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-testcafe

Initialize a new TestCafe project or add TestCafe tests to an existing project

  • 1.1.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

DEPRECATED

The TestCafe team no longer maintains the create-testcafe repository. If you want to take over the project, we'll be happy to hand it over. To contact the team, create a new GitHub issue.

create-testcafe

Use create-testcafe to initialize a new TestCafe project, or add TestCafe to an existing Node.js project.

create-testcafe in action

  • Launch commands
  • Specify project name and location
  • Options
  • Use npm init
  • Run the development version of create-testcafe

Launch commands

# npx
npx create-testcafe
# yarn
yarn create testcafe
# pnpm
pnpm create testcafe

See the use npm init section for information on npm init support.

Specify project name and location

To specify the name and location of the target folder, pass a valid path (relative or absolute) to the create-testcafe command:

# npx
npx create-testcafe appName
# yarn
yarn create testcafe appName
# pnpm
pnpm create testcafe appName

Options

The npm init command handles options differently from other launch commands. See the use npm init section for more information.

OptionDescriptionValueDefault value
--run-wizard, -wLaunch the interactive wizardBooleantrue if the target folder is a Node.js project
--templateProject templatejavascript or typescripttypescript if the project directory includes a .tsconfig.json file.
--test-folderTest subfolder pathValid relative pathtest
--include-sample-testsAdd sample tests to the projectBooleantrue
--github-actions-initAdd a GitHub Actions workflow file to the projectBooleantrue

Use npm init

You can launch create-testcafe with npm init:

npm init testcafe@latest

The npm init command handles options and arguments differently from other launch commands. The precise syntax of npm init depends on your Node.js version. We strongly recommend you use the npx command to pass additional parameters.

Run the development version of create-testcafe

To run the development version of create-testcafe, clone the GitHub repository and build the project from source.

When the build is complete, you can run create-testcafe with the node command, or install the development version as a package.

Build the project from source
npm i

npm run fast-build
Run create-testcafe with the node command

Build the project and execute the following command:

node dist/bin.js ...args
Install as a package

Follow the instructions in the build section before you install the package.

npm i -g

create-testcafe ...args

FAQs

Package last updated on 02 Nov 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