MCPcopy Create free account
hub / github.com/ampproject/amphtml / isTest

Function isTest

src/core/mode/test.js:9–15  ·  view source on GitHub ↗
(opt_win)

Source from the content-addressed store, hash-verified

7 * @return {boolean}
8 */
9export function isTest(opt_win) {
10 if (isProd()) {
11 return false;
12 }
13 const win = opt_win || self;
14 return !!(win.AMP_CONFIG?.test || win.__AMP_TEST || win['__karma__']);
15}

Callers 1

isLocalDevFunction · 0.90

Calls 1

isProdFunction · 0.90

Tested by

no test coverage detected