Search Header Logo

Nodejs - Testing

Authored by Daniel Adesoji

Professional Development

Professional Development

Used 14+ times

Nodejs - Testing
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is testing?

an activity to check whether the actual results match the expected results

an activity to check whether the expected results match the initial results

an activity to check whether the initial results match the actual results

none of the options

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a test runner?

to write test cases

to execute test cases

to set up mock data

to debug the code

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

which library/framework can we use to test out nodejs app

node-tester

testy-node

jest

node-jester

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

when using jest, what module can we use with it to test HTTP request and responses

supertest

requester

jest-request

test-request

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

which of the following command is used to run tests(test runner)

npm jest

npm test

npm runner

npm pretest

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

in Jest, what keyword is used to define a test case?

should

it

expect

describe

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

in Jest, what keyword is used to define a test suite?

should

it

expect

describe

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Professional Development