solidjs / templates

Vite + solid templates
447 stars 117 forks source link

Name import in vitest tests to be { test as it } #64

Closed chris-czopp closed 1 year ago

chris-czopp commented 2 years ago

Could we change this:

import { describe, expect, test } from 'vitest';

to this:

import { describe, expect, test as it } from 'vitest';

and then we could do it('should do stuff'...)

https://github.com/solidjs/templates/blob/master/ts-vitest/src/todo-list.test.tsx#L1

amoutonbrady commented 1 year ago

Hey, thanks for your proposal :)

Fortunately this something you could do on your own after cloning the template. Since the main goal of these templates is to be as generic as possible, I'd argue to not add that.