Squishy123 / ronin-cli

CLI Tools for Development with the Ronin Framework ⚔️
GNU Affero General Public License v3.0
1 stars 1 forks source link

Add cli support for creating tests #3

Open Squishy123 opened 5 years ago

Squishy123 commented 5 years ago

Add cli support for creating tests

The following should be implemented:

CLI Support for make

ronin make:test %NAME%

The test file should contain test in it's name:

e.g. helloworld.test.js

All tests should be located in the tests directory at the root of the repo

/tests/*

The test template should looking something like this:

async function %TEST%() {
    return;
}

tests("TEST 1", () => {
    return %TEST%().then(data => {
        expect(data).toBeNull()
    });
}