Cannot find module in Node.js

I have folowing directory structure:

--app
  -- test
    -- server.js
  -- app.js

I try to call function in app.js which exports from server.js, i do:

var server = require("test/server");

But get error:

Error: Cannot find module 'test/server'

How can i include it correctly?

Thank you.

The path must be relative to the file you are currently in.

Use var server = require("./test/server");