Permalink
Please
sign in to comment.
Browse files
feat(core): add fromBuildIdentifier helper for dynamic at-build-time …
…config * better tests * proxy arrays as well as objects in proxify magic
- Loading branch information
Showing
with
90 additions
and 9 deletions.
@@ -1,8 +1,25 @@ | ||
const { fromBuildIdentifier } = require('../../../src/api'); | ||
|
||
module.exports = { | ||
buildIdentifier: 'beta', | ||
makers: [], | ||
publishers: [], | ||
packagerConfig: { foo: 'bar', baz: {} }, | ||
s3: {}, | ||
electronReleaseServer: {}, | ||
magicFn: () => 'magic result', | ||
topLevelProp: fromBuildIdentifier({ beta: 'foo' }), | ||
topLevelUndef: fromBuildIdentifier({ stable: 'heya' }), | ||
sub: { | ||
prop: { | ||
inArray: [ | ||
fromBuildIdentifier({ beta: 'arr' }), | ||
'natural', | ||
'array', | ||
], | ||
deep: { | ||
prop: fromBuildIdentifier({ beta: 'bar' }), | ||
}, | ||
}, | ||
}, | ||
}; |
0 comments on commit
dc6c9fc