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 precompiled version of jasmine-only #579

Closed
wants to merge 1 commit into from
Closed

Use precompiled version of jasmine-only #579

wants to merge 1 commit into from

Conversation

clentfort
Copy link
Contributor

Ship a static, precompiled version of jasmine-only by @davemo to drop the coffee-script requirement. Fixes #578.

Not sure if we need to update the headers of the precompiled file to include the license. FWIW According to the package.json its under the Apache License 2.0.

Test plan:

  • Create a test file with one describe-block and two tests: One created with it and one with it.only, let both tests print to STDOUT, verify only the contents of the test created with it.only are printed to STDOUT.
  • Create a test file with one describe- and one describe.only-block, in both blocks print to STDOUT, verify that only the describe.only-block prints to STDOUT.

var jasmineFileContent =
fs.readFileSync(require.resolve(JASMINE_PATH), 'utf8');
const JASMINE_PATH = require.resolve('../../vendor/jasmine/jasmine-1.3.0');
const jasmineFileContent = fs.readFileSync(JASMINE_PATH, 'utf8');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah we only need to require.resolve once.

@cpojer cpojer force-pushed the master branch 2 times, most recently from 24a6537 to 8efc492 Compare October 27, 2015 01:17
Ship a static, precompiled version of jasmine-only to drop the coffee-script
requirement.

- Add the precompiled version if jasmine-only to `vendor/jasmine-only/`
- Update `src/jasmineTestRunner/jasmineTestRunner.js` to always use the shipped
  version
- Drop coffee-script from `package.json`
@cpojer
Copy link
Member

cpojer commented Oct 27, 2015

@facebook-github-bot import

@facebook-github-bot
Copy link
Contributor

Thanks for importing. If you are an FB employee go to https://our.intern.facebook.com/intern/opensource/github/pull_request/108676296160596/int_phab to review.

@cpojer
Copy link
Member

cpojer commented Oct 27, 2015

@facebook-github-bot shipit

@facebook-github-bot
Copy link
Contributor

Thanks for importing. If you are an FB employee go to https://our.intern.facebook.com/intern/opensource/github/pull_request/108676296160596/int_phab to review.

@ghost ghost closed this in 6001e8e Oct 27, 2015
@clentfort clentfort deleted the drop-coffee-script branch October 27, 2015 22:30
@facebook-github-bot
Copy link
Contributor

I cannot do that @cpojer, because @clentfort does not have an active CLA on file.

1 similar comment
@facebook-github-bot
Copy link
Contributor

I cannot do that @cpojer, because @clentfort does not have an active CLA on file.

@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2021
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Proposal] Ship precompiled version of jasmine-only
4 participants