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

Update tests #1003

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Update tests #1003

wants to merge 5 commits into from

Commits on Jul 28, 2023

  1. Configuration menu
    Copy the full SHA
    d975dd3 View commit details
    Browse the repository at this point in the history
  2. Use promises in test cases

    JLHwung committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    f1047a7 View commit details
    Browse the repository at this point in the history
  3. add node 20 to CI jobs

    JLHwung committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    6c2618d View commit details
    Browse the repository at this point in the history
  4. test: remove isWebpack5 helper

    babel-loader 9 only supports webpack 5
    JLHwung committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    0d361b3 View commit details
    Browse the repository at this point in the history
  5. find fixture basic index at runtime

    In webpack 5.0.0, the mapObj.sources are
    
    [
      'webpack://babel-loader/./test/fixtures/basic.js',
      'webpack://babel-loader/./test/fixtures/constant.js',
      'webpack://babel-loader/./test/fixtures/import.js',
      'webpack://babel-loader/webpack/bootstrap',
      'webpack://babel-loader/webpack/startup'
    ]
    
    In later versions the `'webpack://babel-loader/./test/fixtures/basic.js'` is moved after webpack bootstrap, causing different indices across different webpack versions.
    JLHwung committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    2d15893 View commit details
    Browse the repository at this point in the history