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

Test Failures suggest potential incompatibilities with ember-cli 3.18+ #927

Closed
stefanpenner opened this issue Aug 19, 2021 · 1 comment · Fixed by #934
Closed

Test Failures suggest potential incompatibilities with ember-cli 3.18+ #927

stefanpenner opened this issue Aug 19, 2021 · 1 comment · Fixed by #934
Assignees
Labels
bug Something isn't working

Comments

@stefanpenner
Copy link
Collaborator

stefanpenner commented Aug 19, 2021

/test-packages/support/package.json can only
be upgraded to ember-cli@3.17, as an issue manifests with ember-cli@3.18.

This issue still needs to be diagnosed

Failures seen when upgrading that package to ember-cli@3.18 are as follows:

FAIL packages/compat/tests/stage2.test.js (123.323s)
  ● stage2 build › engines with css › lazy engine css is imported

    assets/_engine_/lazy-engine.js
    Exected: "  if (macroCondition(!getGlobalConfig().fastboot?.isRunning)) {
    i(\"../../node_modules/lazy-engine/lazy-engine.css\");
      }"
    Received: "
    import { importSync as i, macroCondition, getGlobalConfig } from '@embroider/macros';
    let w = window;
    let d = w.define;·
      if (macroCondition(!getGlobalConfig().fastboot?.isRunning)) {
    i(\"../../node_modules/lazy-engine/lazy-engine/__COMPILED_STYLES__/lazy-engine.css\");
      }·
    d(\"lazy-engine/config/_environment_browser_\", function(){ return i(\"../../node_modules/lazy-engine/config/_environment_browser_.js\");});
    d(\"lazy-engine/config/environment\", function(){ return i(\"../../node_modules/lazy-engine/config/environment.js\");});
    d(\"lazy-engine/engine\", function(){ return i(\"../../node_modules/lazy-engine/engine.js\");});
    d(\"lazy-engine/package\", function(){ return i(\"../../node_modules/lazy-engine/package.json\");});······
    "

      718 |
      719 |     test('lazy engine css is imported', function () {
    > 720 |       expectFile('assets/_engine_/lazy-engine.js')
          |       ^
      721 |         .matches(`  if (macroCondition(!getGlobalConfig().fastboot?.isRunning)) {
      722 | i(\"../../node_modules/lazy-engine/lazy-engine.css\");
      723 |   }`);

      at Object.<anonymous> (packages/compat/tests/stage2.test.ts:720:7)

FAIL packages/compat/tests/addon-styles.test.js (22.146s)
  ● addon.styles tests › all addon CSS gets convert to implicit-styles

    node_modules/my-addon3/package.json
    Exected: "./my-addon3.css"
    Received: ["./my-addon3/__COMPILED_STYLES__/my-addon3.css", "./my-addon3/__COMPILED_STYLES__/nested/inner.css", "./my-addon3/__COMPILED_STYLES__/outer.css"]

       95 |
       96 |   test(`all addon CSS gets convert to implicit-styles`, function () {
    >  97 |     let implicitStyles = expectFile('node_modules/my-addon3/package.json').json().get('ember-addon.implicit-styles');
          |                          ^
       98 |     implicitStyles.includes('./my-addon3.css');
       99 |     implicitStyles.includes('./outer.css');
      100 |     implicitStyles.includes('./nested/inner.css');

      at Object.<anonymous> (packages/compat/tests/addon-styles.test.ts:97:26)


Test Suites: 2 failed, 40 passed, 42 total
Tests:       2 failed, 597 passed, 599 total
Snapshots:   0 total
Time:        490.237s

some links potentially related to the above issue, leaving the notes here so I can easily resume later.

@ef4 points out that merely "making the tests pass" isn't sufficient here: #925 (comment)

stefanpenner added a commit that referenced this issue Aug 19, 2021
3.19+ has some incompatibilities that need to be investigated, I’ve created an [issue](#927) to track
@stefanpenner stefanpenner changed the title unable to upgrade to ember-cli v3.19 unable to upgrade to ember-cli v3.18 for /test-packages/support/package.json Aug 19, 2021
@stefanpenner stefanpenner self-assigned this Aug 19, 2021
@stefanpenner stefanpenner changed the title unable to upgrade to ember-cli v3.18 for /test-packages/support/package.json Test Failures suggest potential incompatibilities with ember-cli 3.18+ Aug 24, 2021
@stefanpenner stefanpenner added the bug Something isn't working label Aug 24, 2021
@stefanpenner
Copy link
Collaborator Author

stefanpenner commented Aug 27, 2021

I believe I have a fix for the issues #934

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant