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 dev dependencies #128

Merged
merged 1 commit into from
Aug 22, 2023
Merged

Update dev dependencies #128

merged 1 commit into from
Aug 22, 2023

Conversation

remcohaszing
Copy link
Member

Initial checklist

  • I read the support docs
  • I read the contributing guide
  • I agree to follow the code of conduct
  • I searched issues and couldn’t find anything (or linked relevant results below)
  • If applicable, I’ve added docs and tests

Description of changes

The test was rewritten to use node:test.

The test was rewritten to use `node:test`.
@remcohaszing remcohaszing added 🦋 type/enhancement This is great to have 📦 area/deps This affects dependencies 🕸️ area/tests This affects tests 🤞 phase/open Post is being triaged manually labels Aug 22, 2023
const fs = require('node:fs/promises')
const path = require('node:path')

const {test} = require('node:test')
const {commands, extensions, window, workspace} = require('vscode')

module.exports.run = async () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this still need to be wrapped in module.exports.run?
Could the tests be run at the top level?

Copy link
Member Author

@remcohaszing remcohaszing Aug 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. This is how @vscode/test-electron works. It references a CJS module that should have a run() function that returns a promise. I.e. using another framework means this function should call something like new Mocha() or jest.run(). node:test just happens to be simple. :)

@remcohaszing remcohaszing merged commit d5cf1b8 into main Aug 22, 2023
13 checks passed
@remcohaszing remcohaszing deleted the update-dependencies branch August 22, 2023 15:34
@github-actions

This comment has been minimized.

@remcohaszing remcohaszing added the 💪 phase/solved Post is done label Aug 22, 2023
@github-actions github-actions bot removed the 🤞 phase/open Post is being triaged manually label Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 area/deps This affects dependencies 🕸️ area/tests This affects tests 💪 phase/solved Post is done 🦋 type/enhancement This is great to have
Development

Successfully merging this pull request may close these issues.

2 participants