Skip to content

[Docs] What is the practical difference of using @ava/typescript? Should I expect automagic source mapping? #19

Closed
@papb

Description

@papb

Note: I have phrased this issue mostly as a question, but please look at it as a request for documentation improvement - I looked around but didn't find anything on this.


My @papb/zip module is written in TypeScript and I currently test it with ava, but without @ava/typescript.

Today I tried to configure @ava/typescript on it. However, although it works, I could not see any practical difference. I thought perhaps source mapping would work automagically, but I still get outputs based on the compiled file.

For example, adding a simple failing test as follows:

// test/test.ts
import test from 'ava';

test('Tests not ready...', t => {
	t.fail();
});

Still yields:

image

Note the presence of ava_1.default.

This was the only thing I was expecting to change. If this still works as before, what is the practical advantage of starting to use @ava/typescript?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions