All files / src/tests config.ts

75% Statements 3/4
50% Branches 2/4
100% Functions 1/1
75% Lines 3/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 141x 1x       1x                
export default function getConfig(env: string) {
	switch (env) {
	case 'production':
	case 'test':
	case 'ci':
			return {
					networkId: 'shared-test',
					nodeUrl: 'https://rpc.ci-testnet.near.org',
					masterAccount: 'test.near',
			};
	default:
			throw Error(`Unconfigured environment '${env}'. Can be configured in src/config.js.`);
	}
};