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

Can't use --match with ava debug #2492

Closed
vedantroy opened this issue May 19, 2020 · 0 comments
Closed

Can't use --match with ava debug #2492

vedantroy opened this issue May 19, 2020 · 0 comments

Comments

@vedantroy
Copy link

The command: pnpm run test:debug -- --match="simplify-union" (will provide package.json, so you know what this resolves to) fails with error "Provide the path to the test file you wish to debug", but, pnpm run test -- --match="simplify-union" works without issue.

As such, I cannot specify a test name when running tests in debug mode.

Here is the relevant part of my package.json. The build, test:prep, and clear-cache commands are probably not relevant, but I included them just in case:

  "scripts": {
    "build": "babel src --out-dir dist --extensions \".ts,.js\" --ignore src/**/*.d.ts",
    "test:prep": "pnpm run build && babel internal-tests --out-dir internal-tests-compiled --extensions \".ts\"",
    "clear-cache": "rimraf -rf node_modules/.cache/@babel/register",
    "test": "pnpm run test:prep && pnpm run clear-cache && ava --verbose",
    "test:debug": "pnpm run test:prep && pnpm run clear-cache && ava debug --serial --verbose",
  },
  "ava": {
    "require": [
      "./_register.js"
    ],
    "typescript": {
      "rewritePaths": {
        "internal-tests/": "internal-tests-compiled/"
      }
    }
  },

Ava version: 3.8.2

The full repository is at https://github.com/vedantroy/typecheck.macro, let me know if you need a minimal reproducible example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant