Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8492071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:36:48+00:00 2026-06-10T22:36:48+00:00

Whenever I attempt to run my unit tests (written with buster and executed user

  • 0

Whenever I attempt to run my unit tests (written with buster and executed user buster test) and include jQuery (since my library depends on it). I get the following error:

./test/deps/jquery-1.7.2.min.js: window is not defined

Here’s my buster.js config file:
var config = module.exports;

config["GitJs Tests"] = {
    rootPath: "../",
    environment: "node",
    sources: [
        "src/Gitjs.js"
    ],
    deps: [
        "test/deps/*.js" // Jquery is in here
    ],
    tests: [
        "test/test_constructor.js"
    ]
};

Why do I get this error and how do I fix it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T22:36:50+00:00Added an answer on June 10, 2026 at 10:36 pm

    Did some digging and figured out that you get this error because, when running in Node, there is no window. jQuery requires the window object to work properly.

    In short: you can’t use jQuery in NodeJs (at least not in its native format :D). If you want to use jQuery and busterJs, you need to run it in “browser” mode.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm attempting to use the jQuery UI Tabs module, but whenever I attempt to
I am getting a java.lang.ArrayStoreException whenever I attempt to run an update query using
I'm getting this error whenever I attempt to declare a class: Parse error: syntax
Whenever I close XCode, the User Info entries that I set for attributes in
For some reason whenever i run a query on the db cursor, it generates
I ask the question because whenever I attempt to call an extension method from
I am using hadoop-0.20.203.0rc1.tar.gz for my cluster setup. Whenever I set job.setMapOutputKeyClass(ByteBuffer.class); and run
Whenever I try to run a specific project / app from Xcode it crashes
I have been trying to get a simple networking test program to run with
Whenever I attempt to set content view after dismissing the progress dialog I get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.