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

Two problems in a rough test run. #61

Open
drunkwcodes opened this issue Aug 16, 2024 · 0 comments
Open

Two problems in a rough test run. #61

drunkwcodes opened this issue Aug 16, 2024 · 0 comments

Comments

@drunkwcodes
Copy link

  1. Micro-agent didn't help me changing my package.json.

I needed to install dependency (jest) by myself.

I asked to ChatGPT and it replied me that I should do following steps:

  • npm install --save-dev jest ts-jest @types/jest
  • Configure package.json:
"jest": {
    "transform": {
      "^.+\\.ts$": "ts-jest"
    },
    "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.ts$",
    "moduleFileExtensions": ["ts", "js"],
    "testEnvironment": "node"
  }

Please automate it.

  1. The generated code has unwanted <code> on top and </code> at the bottom.

Finally, the test passed. Congratulations! You made a significant step for Typescript, Builder-IO!

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