influxdata / influxdata/giraffe

Tests: Fixtures

Open
#150 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
189
Forks
33
Avg merge
3d 15h
Merged PRs (30d)
4

Description

Writing tests in Giraffe has been quite difficult due to TypeScript being very specific about what is expected to be passed into components.

A set of common fixtures would greatly help with this. Example:

```ts
import {SampleRectLayerProps} from './fixtures'
// ...

render()
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing Giraffe component tests and the fixtures module referenced in the issue. Review the TypeScript props required by RectLayer and the proposed SampleRectLayerProps shape. Done means tests can import common fixtures and render components without repeatedly constructing verbose props.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.