mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-25 16:04:01 +00:00
Gitbeaker has been split up into 5 subpackages: gitbeaker-core, gitbeaker-node, gitbeaker-cli, gitbeaker-browser and gitbeaker-requester-utils.
gitbeaker-[node,cli,browser] are enviroment
specific sub packages. For example, if you want to use gitbeaker in a NodeJS environment, use gitbeaker-node. gitbeaker-core is where all the
base logic exists, and gitbeaker-requester-utils is a collection of utility functions for making custom requester libraries.
BREAKING CHANGE: 🧨 This migration requires users to import specific subpackages. For NodeJS
usage, that would be @gitbeaker/node.
14 lines
389 B
TypeScript
14 lines
389 B
TypeScript
import { Gitlab } from '../../../src';
|
|
import * as Services from '../../../src/services';
|
|
|
|
describe('Instantiating All services', () => {
|
|
it('should create a valid gitlab service object using import', async () => {
|
|
const bundle = new Gitlab({
|
|
requester: {},
|
|
token: 'abcdefg',
|
|
});
|
|
|
|
expect(Object.keys(bundle)).toIncludeAllMembers(Object.keys(Services));
|
|
});
|
|
});
|