Skip to content

Commit

Permalink
chore: fixed missing mocks. prefix and add bash directive.
Browse files Browse the repository at this point in the history
  • Loading branch information
yusinto committed Sep 19, 2023
1 parent f97935e commit 71ee878
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ describe('when evaluating user equivalent contexts for segments', () => {
included: ['foo'],
version: 1,
};
const evaluator = new Evaluator(basicPlatform, new TestQueries({ segments: [segment] }));
const evaluator = new Evaluator(mocks.basicPlatform, new TestQueries({ segments: [segment] }));
const flag = makeFlagWithSegmentMatch(segment);
flag.rules[0].clauses![0].negate = true;
const user = { key: 'bar' };
Expand Down
4 changes: 3 additions & 1 deletion scripts/build-package.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env bash

# Run this script like:
# ./scripts/build-package.sh

Expand All @@ -23,7 +25,7 @@ ESM_PACKAGE_JSON=$( jq -n \
--arg type "module" \
'{ name: $name, version: $version, type: $type }' )

tsc --module commonjs --outDir dist/cjs/
tsc --module commonjs --outDir dist/cjs/
echo "$CJS_PACKAGE_JSON" > dist/cjs/package.json

tsc --module es2022 --outDir dist/esm/
Expand Down

0 comments on commit 71ee878

Please sign in to comment.