MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / constructor

Method constructor

test/data/graphql/models.js:6–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5class User {
6 constructor() {
7 const url = `http://localhost:${TestHelper.graphQLServerPort()}`;
8 this.api = axios.create({
9 baseURL: url,
10 });
11 }
12
13 list() {
14 return this.api.get('/users').then(res => res.data);

Callers

nothing calls this directly

Calls 2

graphQLServerPortMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected