Skip to content

Introduce exports/require or similar somewhere between Jest and Data Groups #1062

@illicitonion

Description

@illicitonion

Data Groups has instructions that assume you're writing separate implementation and test files (e.g. in https://programming.codeyourfuture.io/data-groups/sprints/1/prep/#mean)

But until this point we've only ever written things in one file, and never used something like import/require/exports.

For now I suspect trainees will just implement everything in the .test.js files they create (and maybe even not notice that they're making other files).

But the coursework for this sprint (https://github.com/CodeYourFuture/Module-Data-Groups/tree/main/Sprint-1) has some separate implementations and then starts just assuming you'll know how to set things up from scratch.

For now I'm going to add a little scaffolding, but we should introduce these concepts (maybe in the Jest sprint following learning Jest?) so our trainees can start practicing them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    📋 Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions