Skip to content

Write multi-target import tests 🆒 #10

Open
@EthanThatOneKid

Description

Tests need to be written to validate that generated modules are being properly imported by the target language's compiler for each target language available. Testing other language targets than TypeScript require prerequisite installations 🆗.

  • Go: Review the process that the go get subcommand undergoes in order to properly import a dependency to a Go project. Make sure that this process is compatible with the Fart server (GET /go/path/to/mod). See Self-hosted ‘go get’-able repos HOWTO.
  • TypeScript: Verify that the generated types are imported accurately by Deno (on GET /ts/path/to/type.ts) and Node (on GET /node/path/to/type).
  • C++: The easiest thing to do is merely generate static header files and import them into a C++ file that way.
  • QB64: Research how libraries and structs are defined in QB64 and how each source file is taken into account by the QB64 compiler. Make sure the generated types are compatible with QB64 compilation.

Activity

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

Metadata

Labels

enhancementNew feature or requesttestingThis doesn't seem right

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions