Skip to content

Commit e264e3b

Browse files
committed
fixing tests
1 parent 261d905 commit e264e3b

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

injected/scripts/utils/build.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ export async function bundle(params) {
3939
write: false,
4040
outdir: 'build',
4141
target: 'safari15',
42-
logOverride: { 'unsupported-css-nesting': 'silent' },
42+
format: 'iife',
43+
supported: {
44+
"class-private-field": false
45+
},
4346
bundle: true,
4447
metafile: true,
4548
globalName: name,

injected/unit-test/verify-artifacts.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const checks = {
1919
file: join(BUILD, 'android/contentScope.js'),
2020
tests: [
2121
{ kind: 'maxFileSize', value: CSS_OUTPUT_SIZE },
22-
{ kind: 'containsString', text: 'output.trackerLookup = {', includes: true },
22+
{ kind: 'containsString', text: 'define_import_meta_trackerLookup_default', includes: true }
2323
],
2424
},
2525
chrome: {
@@ -45,20 +45,20 @@ const checks = {
4545
},
4646
integration: {
4747
file: join(BUILD, 'integration/contentScope.js'),
48-
tests: [{ kind: 'containsString', text: 'const trackerLookup = {', includes: true }],
48+
tests: [{ kind: 'containsString', text: 'define_import_meta_trackerLookup_default', includes: true }],
4949
},
5050
windows: {
5151
file: join(BUILD, 'windows/contentScope.js'),
5252
tests: [
5353
{ kind: 'maxFileSize', value: CSS_OUTPUT_SIZE },
54-
{ kind: 'containsString', text: 'output.trackerLookup = {', includes: true },
54+
{ kind: 'containsString', text: 'define_import_meta_trackerLookup_default', includes: true }
5555
],
5656
},
5757
apple: {
5858
file: join(APPLE_BUILD, 'contentScope.js'),
5959
tests: [
6060
{ kind: 'maxFileSize', value: CSS_OUTPUT_SIZE },
61-
{ kind: 'containsString', text: 'output.trackerLookup = {', includes: true },
61+
{ kind: 'containsString', text: 'output.trackerLookup = define_import_meta_trackerLookup_default', includes: true },
6262
{ kind: 'containsString', text: '#bundledConfig', includes: false },
6363
],
6464
},

0 commit comments

Comments
 (0)