Justin Dalrymple 6a3292b033
Expose typing to consumer and remove export complexity (#1818)
- Exports all types
- Clean up type duplicates
- Remove Project,User and Group Bundles
- Fix typing on the Gitlab Export
- Clean up README.md
2021-07-05 15:34:19 -04:00

17 lines
606 B
TypeScript

import { promisify } from 'util';
import { exec } from 'child_process';
const execP = promisify(exec);
const { TEST_ID = '', GITLAB_PERSONAL_ACCESS_TOKEN = '', GITLAB_URL = '' } = process.env;
describe('gitbeaker projects create', () => {
it('should create a valid project', async () => {
const command = `projects create --name="CLI Project ${TEST_ID}" --gb-token="${GITLAB_PERSONAL_ACCESS_TOKEN}" --gb-host="${GITLAB_URL}"`;
const { stdout } = await execP(`node dist/index.js ${command}`);
const { name } = JSON.parse(stdout);
expect(name).toBe(`CLI Project ${TEST_ID}`);
});
});