Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ESNext modules in test-end-to-end-tests #15976

Merged
merged 3 commits into from
Jun 15, 2023

Conversation

Abe27342
Copy link
Contributor

Description

Transitions @fluid-internal/test-end-to-end-tests to ESNext modules.

This makes progress toward #15917, a planned improvement for describeCompat.

@Abe27342 Abe27342 requested review from msfluid-bot and a team as code owners June 13, 2023 19:27
@github-actions github-actions bot added area: tests Tests to add, test infrastructure improvements, etc base: main PRs targeted against main branch labels Jun 13, 2023
@msfluid-bot
Copy link
Collaborator

msfluid-bot commented Jun 15, 2023

@fluid-example/bundle-size-tests: +30 Bytes
Metric NameBaseline SizeCompare SizeSize Diff
aqueduct.js 448.88 KB 448.89 KB +6 Bytes
connectionState.js 680 Bytes 680 Bytes No change
containerRuntime.js 239.59 KB 239.59 KB +2 Bytes
loader.js 155.66 KB 155.67 KB +4 Bytes
map.js 46.75 KB 46.75 KB +2 Bytes
matrix.js 146.68 KB 146.68 KB +2 Bytes
odspDriver.js 92.46 KB 92.47 KB +6 Bytes
odspPrefetchSnapshot.js 43.69 KB 43.69 KB +4 Bytes
sharedString.js 163.28 KB 163.29 KB +2 Bytes
sharedTree2.js 248.37 KB 248.37 KB No change
Total Size 1.7 MB 1.7 MB +30 Bytes

Baseline commit: d4265d9

Generated by 🚫 dangerJS against c66fb0b

@justus-camp
Copy link
Contributor

I wasn't familiar with why we needed to specify the file extension now, but that's covered here if anyone is interested in the change in module resolution for ESNext modules in NodeJS: https://nodejs.org/docs/latest-v16.x/api/esm.html#import-specifiers.

@Abe27342 Abe27342 merged commit 39dbbaa into microsoft:main Jun 15, 2023
@Abe27342 Abe27342 deleted the esnext-e2e-tests branch June 15, 2023 22:58
@Abe27342
Copy link
Contributor Author

I wasn't familiar with why we needed to specify the file extension now, but that's covered here if anyone is interested in the change in module resolution for ESNext modules in NodeJS: https://nodejs.org/docs/latest-v16.x/api/esm.html#import-specifiers.

yup, good reference. Also see microsoft/TypeScript#33588 for some comments from the typescript team on why it's a .js extension and not .ts.

DLehenbauer pushed a commit that referenced this pull request Feb 21, 2024
build(client): use fluid-tsc for Node16 test builds
- remove now stale tsc-multi configurations and replace all use with
fluid-tsc.
- enable ESM build for tree test
- Make ajvValidator CommonJS to accommodate typescript's rejection of
Ajv's handcrafted ES Module support.
- *However*, ESM test build is not runnable per internal module import
of id-compressor CommonJS output
(`@fluidframework/id-compressor/dist/test`).
- correct @fluid-private/test-end-to-end-tests build dependencies (was
changed to ESNext in #15976) and @fluidframework/container-runtime test
support was previously moved to production (in #18826).
- update build-tools

Updated the following:

  client (release group)
  client-release-group-root

Dependencies on build-tools updated:

  @fluid-tools/build-cli: 0.34.0
  @fluidframework/build-tools: 0.34.0
  @fluidframework/bundle-size-tools: 0.34.0
  @fluid-tools/version-tools: 0.34.0

Command used:

```shell
pnpm flub bump deps build-tools -g client -t latest --updateChecker homegrown -x
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: tests Tests to add, test infrastructure improvements, etc base: main PRs targeted against main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants