Skip to content

javascript-testing-patterns #714

Description

@samyilias

Preliminary Checks

  • I have read the Code of Conduct
  • I have searched existing issues to ensure this is not a duplicate
  • This is a constructive feature request for legitimate use cases

Scope

Existing plugin / agent / skill / command (improvement)

Target component (if scope is plugin/agent/skill/command)

javascript-testing-patterns

Problem description

the example

export function divide(a: number, b: number): number {
is suppose to give examples to test pure functions however the divide function is not pure since its throwing an error

Proposed solution

the divide function example can be an example of impure functions

Use cases

not that important since most LLM's would understand this , but to make the skill a bit more idiomatic thats all

Alternatives considered

NA

Additional context

No response

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions