A
A
Andrey Rudakov2022-01-15 16:07:49
Node.js
Andrey Rudakov, 2022-01-15 16:07:49

Where can I find documentation on Uint Tests in NestJS?

Good afternoon.
I use NestJS and started trying to write Unit tests.
For example:

describe('sendSmsRegister', () => {
        let usersService = UsersService;
        it('Возврат: чётырехзначный код', async () => {
            expect(
                typeof await usersService.sendSmsRegister()
            ).toEqual('string')
        })
    })


Here's where to get all the expect, toEqual documentation for all these things that are checked?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rag'n' Code Man, 2022-01-15
@DEMETRA-WORK

In your imports, all packages are indicated there, and if you hover over the cursor, you will see what belongs to what.
jest

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question